StarkSeek
EventsJobs
Sign in

Menu

Practice

  • DSA sheetsProblem sheets by topic and company
  • AptitudeNewQuant, logic, data and verbal, with fresh questions
  • SQLNew400 interview-style SQL problems with checked solutions
  • CS fundamentalsNewOS, DBMS, networks and OOP, with labs you can run
  • Skill tracksProject-based learning in 12 domains

Interview prep

  • Mock interviewAIPractise with an AI interviewer by voice
  • Code ComprehensionNewRead, fix and explain real code with an AI assistant
  • EventsHackathons, workshops, meetups and contests
  • JobsOpen roles from companies hiring through StarkSeek

Pricing

  • MembershipsCompare plans and what each includes
  • Add-ons and creditsExtra credits when you need more
  • Rewards store

For Companies

  • Hire talentAssess real work, read the evidence behind every score and decide with your team
  • Host an eventHackathons, coding contests, workshops and meetups, with certificates and a live leaderboard
Sign in
CS fundamentals/Databases/Indexing: B+ trees and hashing

Databases

Indexing: B+ trees and hashing

Why indexes speed up reads, and what a B+ tree node holds.

Practise this topic

In two minutes

One idea to a line

  1. 1

    A B+ tree keeps all records (or record pointers) in the leaves, which are linked for range scans. Internal nodes only guide the search.

  2. 2

    For an internal node of order p: at most p pointers and p − 1 keys, and at least ⌈p/2⌉ pointers (except the root).

  3. 3

    The tree is balanced, so every search takes the same number of block reads: the height. A high fan-out keeps the tree very shallow.

  4. 4

    A hash index is excellent for equality lookups but cannot help range queries or ordering.

  5. 5

    A clustered index decides the physical order of rows, so a table can have only one; secondary indexes can be many.

Slips people make here

Interviewers know them too

  • Putting data pointers in the internal nodes of a B+ tree (that is a B tree).

  • Using a hash index for a range query.

  • Counting keys when the question asks for pointers.

Your practice here

Not started

10 written questions, and 2 kinds of calculation that change every time

No answers yet

Get product updates

New tracks and events, straight to your inbox.

StarkSeek

Learn by building real projects, practise interview-level DSA, and apply to roles from hiring teams.

Platform

  • Learning tracks
  • Practice problems
  • Aptitude
  • SQL practice
  • CS fundamentals
  • Mock interviews
  • Code Comprehension
  • Events

Resources

  • Host an event
  • For companies
  • Certificates
  • Rewards store
  • Pricing
  • Add-ons
  • Blog

Company

  • Careers
  • Contact us
  • Privacy policy
  • Terms of service

Support

  • contact@starkseek.com
  • community@starkseek.comEvents and organizers
  • partner@starkseek.comCompanies and partnerships

© 2026 StarkSeek. A product of NOKATI LLP.

Recognized by