PMMockr

QuestionsTechnical PMTop-Interview

Write a function that converts stack samples into a trace, given example inputs and outputs, in a Google Colab environment.

Focus on writing a clear and efficient function that takes stack samples as input and transforms them into a trace format. Pay attention to the structure of the input data and ensure your function handles various edge cases, such as empty inputs or unexpected formats. Make sure to include comments in your code to explain your logic and any assumptions you make. Additionally, demonstrate how to test your function with the provided example inputs and outputs within the Google Colab environment, showcasing both the functionality and usability of your solution.

What this question tests

Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.

Start a timed mock interview

Related Technical PM questions

All Technical PM questions · Product manager interview questions by skill area