All Posts

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.

How to Undo a Git Add Before Commit (Short Answer)

Short answers to the question how to undo a git...

How to Rename a Local Git Branch (Short Answer)

Short answers to the question how to rename a local...

How to Delete a Git Branch Locally and Remotely (Short Answer)

Short answers to the question how to delete a git...

How to Checkout a Remote Git Branch (Short Answer)

Short answers to the question how to checkout a remote...


How to Undo the Most Recent Local Commit in Git (Short Answer)

Short answers to the question how to undo the most...

Smallest Greater Multiple Made of Two Digits Problem

LeetCode 1999. Given three integers, k, digit1, and digit2, you...