Questions / Rakuten

Modify and Query Range Sum in Segment Tree

Asked at Rakuten · Coding Questions · Difficulty: Medium

Design a class that supports these operations with time complexity O(log n) for both updates and queries.

Loading the problem…

More Rakuten interview questions

  • Two-Team Turn-Based Battle Simulator
  • Toy Language Type System
  • Grid Infection and Immunity Simulation
  • Earliest Supporting Version with a Probe Budget
  • Time-Based Key-Value Store
  • Resumable Iterators
All Rakuten questions