Given a m x n grid filled with non-negative numbers, find a path from top left to b…
分类:LeetCode题目解答
[LeetCode] IPO 上市
Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capita…
[LeetCode] Coin Change 2 硬币找零之二
You are given coins of different denominations and a total amount of money. Write a function to compute…
[LeetCode] To Lower Case 转为小写
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowerc…
[Leetcode] Max Points on a Line 线上最大点数
Max Points on a Line Given n points on a 2D plane, find the maximum number of points that lie on the same stra…
【leetcode】53. Maximum Subarray 连续子序列的最大和
1. 题目 Find the contiguous subarray within an array (containing at least one number) which has the largest sum.…
[LeetCode] Random Pick with Blacklist 带黑名单的随机选取
Given a blacklist B containing unique integers from [0, N), write a function to ret…
[Leetcode] Self Dividing Numbers 自除数
Self Dividing Numbers 请访问最新更新版本:https://yanjia.me/zh/2018/11/… A self-dividing number is a number that i…
[LeetCode] Design HashMap 设计HashMap
Design a HashMap without using any built-in hash table libraries. To be specific, your design shou…
[Leetcode] Matchsticks to Square 火柴拼方形
Matchsticks to Square Remember the story of Little Match Girl? By now, you know exactly what matchsticks the l…
[LeetCode] Binary Tree Paths 二叉树路径,Path Sum II
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree:  …
[LeetCode] Find the Difference 寻找不同
Given two strings s and t which consist of only lowercase letters. String t&nb…