All Posts

Group Anagrams Problem

LeetCode 49. Given an array of strings strs, group the...

First Missing Positive Problem

LeetCode 41. Given an unsorted integer array nums, return the...

Find First and Last Position of Element in Sorted Array Problem

LeetCode 34. Given the array nums after the possible rotation...

Divide Two Integers Problem

LeetCode 29. Write the code that will take a string...

Count and Say Problem

LeetCode 38. Write the code that will take a string...

Combination Sum Problem

LeetCode 39. Given an array of distinct integers candidates and...


Combination Sum II Problem

LeetCode 40. Given a collection of candidate numbers (candidates) and...

3Sum Closest Problem

LeetCode 16. Given an integer array nums of length n...

Valid Parentheses Problem

LeetCode 20. Given a string s containing just the characters...

Swap Nodes in Pairs Problem

LeetCode 24. Given a linked list, swap every two adjacent...

Roman to Integer Problem

LeetCode 13. Given a roman numeral, convert it to an...

Reverse Integer Problem

LeetCode 7. Given a signed 32-bit integer x, return x...

Remove Nth Node From End of List Problem

LeetCode 19. Given the head of a linked list, remove...

Remove Duplicates from Sorted Array Problem

LeetCode 26. Given an integer array nums sorted in non-decreasing...


Longest Palindromic Substring Problem

LeetCode 5. Given a string s, return the longest palindromic...