All Posts

Multiply Strings Problem

LeetCode 43. Given two non-negative integers num1 and num2 represented...

Longest Valid Parentheses Problem

LeetCode 32. Given a string containing just the characters ‘(‘...

Jump Game II Problem

LeetCode 45. Given an array of non-negative integers nums, you...

Integer to Roman Problem

LeetCode 12. Given an integer, convert it to a roman...

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...