Built by developers, for developers

The best LeetCode companion for your interview prep.

Sprint injects time/space complexity estimates, verified top-tier company tags, an AI debugger, and raw contest ELO metrics directly into your default LeetCode canvas.

No tracking scripts. No credentials stored. 100% verified data.

Time: O(n) Space: O(n)
twoSum.cpp
class Solution {
public:
  vector<int> twoSum(vector<int>& nums, int target) {
    unordered_map<int, int> numToIdx;
    for (int i = 0; i < nums.size(); ++i) {
      int currentNum = nums[i];
      int complement = target - currentNum;
Code Debugger
Syntax Bug Located

Variable `current` is undefined — did you mean `currentNum`?

Help us improve Sprint

Spot a bug or have a feature idea? Leave us a note and we'll look into it personally.