New · Search ⌘K · Roadmaps · Flashcards · Placement guide
Study smarter.
Build better.
The all-in-one platform for BTech students — notes, DSA, roadmaps, quizzes, aptitude, and interview prep. Designed to feel effortless.
Free forever · No signup required · Built for IIT, NIT & every campus
def two_sum(nums, target):
seen = {}
for i, n in enumerate(nums):
if target - n in seen:
return [seen[target - n], i]
seen[n] = i
# BookHaven · 42ms
print(two_sum([2, 7, 11, 15], 9))Output
[0, 1]
Accepted · optimal O(n)
500+
Notes
1.2k+
Problems
50+
Companies
∞
Practice
Students from campuses across India
10k+
Active students
6
Career roadmaps
1.2k+
DSA problems
50+
Companies covered
Platform
Everything. Beautifully simple.
Four tools. One calm workspace. No clutter, no noise — just progress.
Today's problem
One focused problem a day compounds. Come back tomorrow for the next.
Two Sum
Find two numbers that add up to a target.
How it works
From first semester to final offer.
A deliberate path — not another tab chaos of random YouTube videos and PDFs.
Start practicingLearn with notes
Structured, semester-wise content that opens on BookHaven — not random PDFs.
Practice with feedback
Submit DSA solutions, see failed tests, and unlock the best approach.
Interview with confidence
Write answers, get scored on key concepts, study model responses.
Full toolkit
Built for the full student life.
Roadmaps, revision, aptitude, projects, grades, focus — everything beyond “just code.”
FAQ
Questions, answered.
Yes. Core learning tools — notes, DSA judge, compiler, quizzes, roadmaps — are free. No signup required for practice.
BookHaven
Your edge starts today.
Join thousands of BTech students who study, practice, and prep in one beautiful place.