Maximal Square LeetCode Solution
Given an m x n binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.
Maximal Square LeetCode Solution Read More »
Leetcode SolutionGiven an m x n binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area.
Maximal Square LeetCode Solution Read More »
Leetcode SolutionReverse bits of a given 32 bits unsigned integer.
Reverse Bits LeetCode Solution Read More »
Leetcode SolutionThere is a singly-linked list head and we want to delete a node node in it. Delete the given node
Delete Node in a Linked List LeetCode Solution Read More »
Leetcode SolutionGiven the head of a singly linked list, reverse the list, and return the reversed list.
Reverse Linked List LeetCode Solution Read More »
Leetcode SolutionYou are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Climbing Stairs LeetCode Solution Read More »
Leetcode SolutionYou are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists. Return the head of the merged linked list.
Merge Two Sorted Lists LeetCode Solution Read More »
Leetcode SolutionGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Trapping Rain Water LeetCode Solution Read More »
Leetcode SolutionYou are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).
Rotate Image LeetCode Solution Read More »
Leetcode Solution