上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: ``` / Source : https://oj.leetcode.com/problems/edit distance/ Given two words word1 and word2, find the minimum number of steps required to convert w 阅读全文
posted @ 2017-10-24 08:37 lacker 阅读(138) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.Stack; / Source : https://oj.leetcode.com/problems/simplify path/ Given an absolute path for a file (Unix style), simplify it. Fo 阅读全文
posted @ 2017-10-23 08:30 lacker 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/climbing stairs/ You are climbing a stair case. It takes n steps to reach to the top. Each time you ca 阅读全文
posted @ 2017-10-21 08:33 lacker 阅读(134) 评论(0) 推荐(0) 编辑
摘要: ```java /** * Source : https://oj.leetcode.com/problems/sqrtx/ * * * Implement int sqrt(int x). * * Compute and return the square root of x. */ public class Sqrt { /** * 求x的平方根,这里要求的是... 阅读全文
posted @ 2017-10-20 08:28 lacker 阅读(166) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; / Source : https://oj.leetcode.com/problems/text justification/ Given 阅读全文
posted @ 2017-10-18 08:23 lacker 阅读(251) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/add-binary/ * * * Given two binary strings, return their sum (also a binary string). * * For example, * a = "11" * b = "1" * Return "100". ... 阅读全文
posted @ 2017-10-17 08:32 lacker 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/plus-one/ * * * Given a non-negative number represented as an array... 阅读全文
posted @ 2017-10-16 23:08 lacker 阅读(116) 评论(0) 推荐(0) 编辑
摘要: ``` /** * * Source : https://oj.leetcode.com/problems/valid-number/ * * * Validate if a given string is numeric. * * Some examples: * "0" => true * " 0.1 " => true * "abc" => false * "1 ... 阅读全文
posted @ 2017-10-13 08:18 lacker 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ``` / Source : https://oj.leetcode.com/problems/minimum path sum/ Given a m x n grid filled with non negative numbers, find a path from top left to bo 阅读全文
posted @ 2017-10-12 09:23 lacker 阅读(97) 评论(0) 推荐(0) 编辑
摘要: ``` /** * Source : https://oj.leetcode.com/problems/unique-paths-ii/ * * * Follow up for "Unique Paths": * * Now consider if some obstacles are added to the grids. How many unique paths would th... 阅读全文
posted @ 2017-10-10 08:09 lacker 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页