摘要:
Perform String Shifts You are given a string s containing lowercase English letters, and a matrix shift, where shift[i] = [direction, amount]: directi 阅读全文
摘要:
leetcode 494. Target Sum You are given a list of non negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and . For each inte 阅读全文
摘要:
leetcode 543. Diameter of Binary Tree Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree i 阅读全文
摘要:
leetcode 746. Min Cost Climbing Stairs(easy understanding dp solution) On a staircase, the i th step has some non negative cost cost[i] assigned (0 in 阅读全文
摘要:
leetcode 213. House Robber II You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. A 阅读全文
摘要:
leetcode 198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the 阅读全文
摘要:
leetcode 120. Triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Fo 阅读全文
摘要:
leetcode 64. Minimum Path Sum Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum o 阅读全文
摘要:
leetcode 63. Unique Paths II A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move 阅读全文
摘要:
leetcode 62. Unique Paths A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move eit 阅读全文