Skip to content

Instantly share code, notes, and snippets.

@chuchao333
Last active August 29, 2015 14:16
Show Gist options
  • Save chuchao333/fb0350bd4860499eea80 to your computer and use it in GitHub Desktop.
Save chuchao333/fb0350bd4860499eea80 to your computer and use it in GitHub Desktop.

Revisions

  1. chuchao333 revised this gist Mar 1, 2015. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions LeetCode_Stats.md
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,11 @@ Find Peak Element: 1 CE, 1 AC

    Searching a 2D Sorted Matrix: not in OJ, but an interesting problem


    # Array

    Merge Sorted Array: 1 RE, 2 WA, 1 AC, 1 AC (insert from end to begin, more efficient)

    Remove Duplicates from Sorted Array: 1 TLE, 3 WA, 3 OLE, 1 AC, 1 AC (use two pointers, while the second points to a new value)

    Remove Duplicates from Sorted Array II: 1 AC, 1 AC (two pointers, similar idea as above)
  2. chuchao333 revised this gist Mar 1, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions LeetCode_Stats.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,16 @@
    # Binary Search

    Search Insert Position: 1 CE, 1 TLE, 1 AC

    Search for a Range: 1 CE, 1 WA, 1 AC, 1 AC (binary search twice)

    Search in Rotated Sorted Array: 3 WA, 1 AC

    Search in Rotated Sorted Array II: 2 WA, 1 TLE, 2 WA, 1 AC (sequencial search), 1 AC

    Search a 2D Matrix: 1 AC

    Find Peak Element: 1 CE, 1 AC

    Searching a 2D Sorted Matrix: not in OJ, but an interesting problem

  3. chuchao333 revised this gist Mar 1, 2015. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions LeetCode_Stats.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,10 @@
    # Binary Search

    Search Insert Position: 1 CE, 1 TLE, 1 AC
    Search for a Range: 1 CE, 1 WA, 1 AC, 1 AC (binary search twice)
    Search in Rotated Sorted Array: 3 WA, 1 AC
    Search in Rotated Sorted Array II: 2 WA, 1 TLE, 2 WA, 1 AC (sequencial search), 1 AC
    Search a 2D Matrix: 1 AC
    Find Peak Element: 1 CE, 1 AC
    Searching a 2D Sorted Matrix: not in OJ, but an interesting problem

  4. chuchao333 created this gist Mar 1, 2015.
    1 change: 1 addition & 0 deletions LeetCode_Stats.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # Binary Search