What is a binary search tree?
Answer: A binary tree where each node's left subtree holds smaller keys and right subtree holds larger keys.
Explanation
Search is O(log n) when balanced, O(n) when degenerate.
Exam prep · Coding interview
Interview problems are solved by recognizing a pattern, not by remembering a solution. Flashcards are the fastest way to build that recognition: pattern on the front, the signal that it applies on the back. Start with the decks below, then card every problem you solve.
Updated 2026-10-23. Decks are shared by Quizcard and its users; study them on the page or copy them into a free account.
Missing a topic? Upload the chapter from your prep book and Quizcard builds the deck for you, grouped by topic, with figures kept from PDFs. How it works.
Each quiz scores you at the end and explains every answer. Redo it any time; the questions reshuffle.
What is a binary search tree?
Answer: A binary tree where each node's left subtree holds smaller keys and right subtree holds larger keys.
Search is O(log n) when balanced, O(n) when degenerate.
What is version control and what does Git's commit do?
Answer: Version control tracks changes to code over time; a commit records a snapshot with a message.
Branches let you work on features without affecting main.
What is a unit test?
Answer: A small automated test that checks one function or component in isolation.
Fast feedback; catches regressions.
What is polymorphism?
Answer: The ability for different classes to respond to the same method call in their own way.
Example: shape.area() works for Circle and Square.
What is encapsulation?
Answer: Bundling data with the methods that operate on it and restricting direct access to internal state.
Achieved with private fields and public methods.
What is inheritance?
Answer: A mechanism where a class (subclass) acquires the attributes and methods of another class (superclass).
Supports code reuse and 'is-a' relationships.
Showing 6 of 30 cards. Study the whole deck or copy it into your account.
For pattern recognition and complexity recall, yes. They do not replace solving problems; they make the recall part of solving instant.
The one you are fastest in. Python and Java are the most common; the interviewer cares about reasoning more than syntax.
Yes, from the PDF. Two documents are free; longer books need Pro, which reads up to 150 pages per document.
Official information: LeetCode. Formats and weights change; check the official page before test day.
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.