Questions › Technical PM › Top-Interview
Write a function that converts stack samples into a trace, given example inputs and outputs, in a Google Colab environment.
- Technical PM
- Top-Interview
- 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.
Related Technical PM questions
- Design a scalable system for a token-generation service used by an LLM that needs to handle up to 100,000 requests per second.Top-Interview · Technical PM · Hard
- What are the risks of assuming LLMs think or feel like humans?Top-Interview · Technical PM · Hard
- What's your approach to question engineering?Top-Interview · Technical PM · Hard
- How do you stay up-to-date with the latest developments in AI?Top-Interview · Technical PM · Hard
- What are the ethical risks of deploying agentic AI systems in high-stakes environments?Top-Interview · Technical PM · Hard
- Design an agentic AI system that can autonomously adapt to new tasks.Top-Interview · Technical PM · Hard
All Technical PM questions · Product manager interview questions by skill area