🌓

leetcode : Search in Rotated Sorted Array

runtime 0 ms, beats 100% of cpp submissions
O(log(n)) solution with explanation

tags: binary search

Read More

leetcode : Next Permutation

runtime 0 ms, beats 100% of cpp submissions
O(n) solution with explanation

tags: none

Read More

leetcode : Implement strStr()

runtime 0 ms, beats 100% of cpp submissions
O(n+m) solution with explanation

tags: string

Read More

leetcode : Divide Two Integers

runtime 0 ms, beats 100% of cpp submissions
O(log(n)) solution with explanation

tags: number, bit manipulation

Read More

leetcode : Remove Element

runtime 0 ms, beats 100% of cpp submissions
O(n) solution with explanation

tags: two pointer

Read More

leetcode : Reverse Nodes in k-Group

runtime 8 ms, beats 99.56% of cpp submissions
O(n) solution with explanation

tags: linked list, pointer

Read More

leetcode : Remove Duplicates from Sorted Array

runtime 4 ms, beats 99.14% of cpp submissions
O(n) solution with explanation

tags: none

Read More

leetcode : Swap Nodes in Pairs

runtime 0 ms, beats 100% of cpp submissions
O(n) solution with explanation

tags: linked list, pointer

Read More

leetcode : Merge k Sorted Lists

runtime 16 ms, beats 99.38% of cpp submissions
O(nlog(k)) solution with explanation

tags: linked list, heap, divide and conquer

Read More

leetcode : Generate Parentheses

runtime 0 ms, beats 100% of cpp submissions
O((4^n)/sqrt(n)) solution with explanation

tags: recursion

Read More