5 questions · 5 answered
DSA questions
Questions asked by learners preparing for interviews and placements, answered by other members. Ask your own and it appears here too.
- 2answers 4votes recursion samajh nahi aata yaar base case aur recursive call theek hai but tree recursion me (like subsets) dimag kharab ho jata hai. kaise practice karu DSARahul Yadav·21 days ago
- 2answers 10votes how to know when to use binary search on answer Koko eating bananas, ship packages in D days etc. I understand the solution after seeing it but I never recognise these in a new problem DSAAditya Verma·27 days ago
- 3answers 5votes Striver sheet or Leetcode 75? 4 months left. which one should I do DSARitika Malhotra·28 days ago
- 2answers 6votes how do you trace recursion fast? int f(int n) { if (n <= 1) return 1; return f(n-1) + f(n-2); } f(4)? I keep messing up when drawing the full tree under time pressure DSANikhil Choudhary·1 month ago
- 2answers 7votes Complexity when inner loop starts from i for (int i = 0; i < n; i++) for (int j = i; j < n; j++) count++; Answer was O(n^2). But the inner loop runs fewer times every iteration so shouldn't it be less… DSAAbhishek Dubey·2 months ago
Learn DSA properly
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.