Leetcode 73: Set Matrix Zeroes Posted on June 12, 2018 Question Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. [Read More] Tags: Leetcode
Leetcode 71: Simplify Path Posted on June 12, 2018 Question Given an absolute path for a file (Unix-style), simplify it. [Read More] Tags: Leetcode
Leetcode 64: Minimum Path Sum Posted on June 12, 2018 Question Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. [Read More] Tags: Leetcode DP
Leetcode 61: Rotate List Posted on June 12, 2018 Question Given a linked list, rotate the list to the right by k places, where k is non-negative. [Read More] Tags: Leetcode
Leetcode 55: Jump Game Posted on June 12, 2018 Question Given an array of non-negative integers, you are initially positioned at the first index of the array. [Read More] Tags: Leetcode DP
Leetcode 63: Unique Paths II Posted on June 7, 2018 Question A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). [Read More] Tags: Leetcode DP
Leetcode 62: Unique Paths Posted on June 7, 2018 Question A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). [Read More] Tags: Leetcode
Leetcode 59: Spiral Matrix II Posted on June 7, 2018 Question Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. [Read More] Tags: Leetcode
Leetcode 54: Spiral Matrix Posted on June 7, 2018 Question Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. [Read More] Tags: Leetcode
Leetcode 56: Merge Intervals Posted on June 6, 2018 Question Given a collection of intervals, merge all overlapping intervals. [Read More] Tags: Leetcode
Leetcode 50: Pow(x, n) Posted on June 6, 2018 Question Implement pow(x, n), which calculates x raised to the power n (\(x^n\)). [Read More] Tags: Leetcode
Leetcode 49: Group Anagrams Posted on June 6, 2018 Question Given an array of strings, group anagrams together. [Read More] Tags: Leetcode
Leetcode 83: Remove Duplicates from Sorted List Posted on June 3, 2018 Question Given a sorted linked list, delete all duplicates such that each element appear only once. [Read More] Tags: Leetcode
Leetcode 43: Permutations II Posted on June 3, 2018 Question Given a collection of numbers that might contain duplicates, return all possible unique permutations. [Read More] Tags: Leetcode Backtracking