SnapDevCode
4,200+ Company OA Questions Now Available

Master Coding Interviews & Company Online Assessments

Practice over 4,200+ real OA questions from top tech companies, extract problem screenshots instantly with Gemini AI Vision, and solve directly on official judge platforms.

AI VisionOA Screenshot Extractor
10+DSA Visualizers
4Languages (C++, JS, Py, Java)
100%Free & Client Sandbox
oa/practice-ide
Client Web Worker Sandbox
Google & Amazon Senior OAEasy-Medium

Two Sum II - Array Pair Search

Given a sorted array of integers nums and target value target, find two numbers that add up to target.

Input: nums = [2,7,11,15], target = 9 | Output: [1,2]
Language: C++ (Default)10/10 Testcases Accepted! 🎉
1 #include <iostream>
2 class Solution {
3 public:
4 void solve() { // C++ Stub }
5 };
1-Click Export AvailableTry OA Suite
Live Feature Release

1,100+ Company OA Questions

Practice over 1,100 real online assessment (OA) questions from Google, Amazon, Microsoft, and Meta with a premium IDE, isolated Web Worker sandbox, and zero server execution risk!

Default C++ & Multi-Language IDE

C++, Python & JS Practice IDE

Practice in C++, JavaScript, Python, or Java with 5 editor themes, line numbers, blank starter stubs, and split-panel resizer.

Web Worker Sandbox

Zero Server Execution Risk

Code runs inside client-side Web Workers with 2000ms TLE guards, strict mode, and nullified network APIs.

1-Click Social Export

Export to SnapDev Frame

Pass all testcases and export your solution directly to SnapDev Frame to share on LinkedIn, Twitter/X & Instagram!

Built for Modern Developers & CS Students

Four powerful modules designed to elevate your code, portfolio, and algorithm interview prep.

FAQ

Frequently Asked Questions