LearnWithKiriti

Two Sum II - Input Array Is Sorted

Medium LeetCode 167 ↗
💻 Try it yourself first. Write your solution in Java, C++, Python or JavaScript and run it against hidden tests, right here. 🎮 Play Memory Pairs: a mini-game built on this problem. Works on your phone too. Pass Submit to unlock every round.
Play
On this page
  1. Revision notes

Notes are on the way

Written notes, pseudocode and code for this problem are coming soon. For now, watch the video above, then solve it yourself in the practice panel.