All Posts

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

Longest Common Prefix Problem

LeetCode 14. Write a function to find the longest common...

Letter Combinations of a Phone Number Problem

LeetCode 17. Given a string containing digits from 2-9 inclusive,...

Generate Parentheses Problem

LeetCode 22. Given n pairs of parentheses, write a function...

Depth of BST Given Insertion Order Problem

LeetCode 1902. You are given a 0-indexed integer array order...

Container With Most Water Problem

LeetCode 11. Given n non-negative integers a_1, a_2, …, a_n...


Git Short Answers List

A growing list of Git questions and short answers.