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

PythonC++Java
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

IIT DelhiIIT BombayIIT MadrasNIT TrichyBITS PilaniIIIT HyderabadDTUNSUTVITNIT SurathkalIIT KanpurIIIT BangaloreIIT DelhiIIT BombayIIT MadrasNIT TrichyBITS PilaniIIIT HyderabadDTUNSUTVITNIT SurathkalIIT KanpurIIIT Bangalore

10k+

Active students

6

Career roadmaps

1.2k+

DSA problems

50+

Companies covered

Daily challenge

Today's problem

One focused problem a day compounds. Come back tomorrow for the next.

EasyArrays

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 practicing
01

Learn with notes

Structured, semester-wise content that opens on BookHaven — not random PDFs.

02

Practice with feedback

Submit DSA solutions, see failed tests, and unlock the best approach.

03

Interview with confidence

Write answers, get scored on key concepts, study model responses.

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.