Questions › Technical PM › Top Interview Questions
Write a function that converts stack samples into a trace, given example inputs and outputs, in a Google Colab environment.
- Technical PM
- Top Interview Questions
- Easy
- 10 min
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
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
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.
All Technical PM questions · Product manager interview questions by skill area
Related Technical PM questions
- How are tree combinations from boosting methods different from those used in random forests?Top Interview Questions · Technical PM · Hard
- Given an array of numbers where every number occurs twice except one, how would you find the unique number in O(log n) time?Top Interview Questions · Technical PM · Hard
- Edit distanceTop Interview Questions · Technical PM · Hard
- Find Top Customer by YearTop Interview Questions · Technical PM · Hard
- SQL Stored ProceduresTop Interview Questions · Technical PM · Hard
- Design a Spotify Recommendation System.Top Interview Questions · Technical PM · Hard