Leetcode

See my leetcode problem solving notes

I collated all the leetcode problems i solved on here so you can learn from it. You can search for a problem, filter by language or problem type, narrow by difficulty.

Showing 1-10 of 439 problems

Page 1 of 44

09 Sept 2026Go / Python / TypeScriptEasy

Available Captures for Rook

Count pawns an unmoving rook can capture along the four board directions before a bishop blocks it.

arraymatrixsimulation
09 Sept 2026Go / Python / TypeScriptEasy

Backspace String Compare

Check whether two typed strings are equal after applying backspace characters.

two-pointersstringstacksimulation
09 Sept 2026Go / Python / TypeScriptEasy

Baseball Game

Evaluate a sequence of baseball scoring operations and return the total score.

arraystacksimulation
09 Sept 2026Go / Python / TypeScriptEasy

Binary Gap

Find the greatest distance between consecutive set bits in an integer.

bit-manipulation
09 Sept 2026Go / Python / TypeScriptEasy

Binary Search

Locate a target in a sorted integer array or report that it is absent.

arraybinary-search
09 Sept 2026Go / Python / TypeScriptEasy

Buddy Strings

Check whether swapping exactly two characters in one string can produce another string.

hash-tablestring
09 Sept 2026Go / Python / TypeScriptEasy

Can Place Flowers

Determine whether enough flowers can be planted without placing any two in adjacent plots.

arraygreedy