Interview Prep, the C# solutions for LeetCode problems.
# | Title | Solution | Time | Space | Comment |
---|---|---|---|---|---|
344 | Reverse String | c# | O(n) | O(1) | Used Two Pointer approach. |
# | Title | Solution | Time | Space | Comment |
---|---|---|---|---|---|
392 | Is Subsequence | c# | O(n) | O(1) | Used Two Pointer approach. |
# | Title | Solution | Time | Space | Comment |
---|---|---|---|---|---|
977 | Squares Of A Sorted Array | c# | O(n) | O(n) | Use Two Pointer approach with anoter variable to keep track of the end index of the the other output array |