anyulu / grokking-the-coding-interview

my solutions for grooking the coding interview. Link: https://www.educative.io/courses/grokking-the-coding-interview
137 stars 66 forks source link

Correct Leetcode for Two Sum #1

Open rpmullig opened 2 years ago

rpmullig commented 2 years ago

Hi, thanks for putting the list up on github. I've been running through it :)

I found that Two Sum is not Leetcode 1, but rather Leetcode 167. "Two Sum II - Input Array is Sorted"

Leetcode 1 is just regular Two Sum and you can't solve with Two Pointers.

rpmullig commented 2 years ago

Also, Leetcode 27 should go with 26 per the current version of Grokking including that question in the same section