Determine a way to take n college courses in order, from course 0 to n-1. However, some courses can have multiple prerequisites. Provide any possible order or [-1] if there's no solution.
795 practiced
TechnicalDoorDashHard129.5K views
Find the closest number in a sorted array.
1.1K practiced
TechnicalGoogleHard79.8K views
Count the number of ways to split a string.
461 practiced
TechnicalDropboxHard37.9K views
Design a module to fetch a unique User ID (integer) from a pool of available User IDs. Then, return the ID to the pool for later use.
347 practiced
TechnicalAppleHard127.3K views
You are handed a pair of Apple AirPods for the first time. Write a test plan for this product.
1.0K practiced
TechnicalAppleHard108.4K views
Implement a red-black tree.
770 practiced
TechnicalAppleMedium226.5K views
Explain the differences between stack and heap memory allocation.
1.3K practiced
TechnicalMicrosoftMedium184.1K views
How do you select the value of 'k' in the k-means algorithm?
1.2K practiced
TechnicalGoogleMedium54.6K views
Given two strings of equal length, determine if it's possible to form a palindrome by cutting them in half.
InterviewSense question bank covers 13,206+ real interview questions across behavioral, technical, system design, machine learning, product strategy, and analytical categories. Questions sourced from candidates at Google, Amazon, Meta, Microsoft, Apple, and 200+ other companies.
Ready to practice?
Get AI-powered feedback on every answer. Free for students and internship seekers.