All Posts

Cheapest Flights Within K Stops Problem

LeetCode 787. There are n cities connected by some number...

Champagne Tower Problem

LeetCode 799. We stack glasses in a pyramid, where the...

Can Place Flowers Problem

LeetCode 605. You have a long flowerbed in which some...

Bulb Switcher II Problem

LeetCode 672. There is a room with n bulbs labeled...

Binary Search Problem

LeetCode 704. Given an array of integers nums which is...

Binary Number With Alternating Bits Problem

LeetCode 693. Given a positive integer, check whether it has...


Beautiful Arrangement II Problem

LeetCode 667. Given two integers n and k, construct a...

Basic Calculator IV Problem

LeetCode 770. Given an expression such as expression = “e...

Baseball Game Problem

LeetCode 682. You are keeping score for a baseball game...

Average Of Levels In Binary Tree Problem

LeetCode 637. Given the root of a binary tree, return...

Asteroid Collision Problem

LeetCode 735. We are given an array asteroids of integers...

All Paths From Source To Target Problem

LeetCode 797. Given a directed acyclic graph (DAG) of n...

Add One Row To Tree Problem

LeetCode 623. Given the root of a binary tree and...

Accounts Merge Problem

LeetCode 721. Given a list of accounts where each element...


24 Game Problem

LeetCode 679. You are given an integer array cards of...