### LeetCode从零开刷

1 已关注
37篇博文
• #### [Leetcode从零开刷]18. Pascal's Triangle

题目来源 leetcode 题目： Given numRows, generate the first numRows of Pascal’s triangle. For example,...

2018-02-09 10:23
22
• #### [Leetcode从零开刷]66. Plus One

题目来源 leetcode 题目： Given a non-negative integer represented as a non-empty array of digits, plus...

2018-02-09 18:02
23
• #### [Leetcode从零开刷]119. Pascal's Triangle II

题目来源 leetcode 题目要求： Given an index k, return the kth row of the Pascal’s triangle. For examp...

2018-02-28 10:11
16
• #### [Leetcode从零开刷]693. Binary Number with Alternating Bits

题目来源：leetcode Given a positive integer, check whether it has alternating bits: namely, if two adjac...

2018-03-01 00:06
23
• #### [Leetcode从零开刷]217. Contains Duplicate

题目来源 leetcode 题目 Given an array of integers nums, write a method that returns the “pivot” index...

2018-02-08 17:21
31
• #### [Leetcode从零开刷]344. Reverse String

题目来源： leetcode 题目： Write a function that takes a string as input and returns the string reversed....

2017-11-30 09:41
46
• #### [Leetcode从零开刷]292.Nim Game

题目来源 leetdoe: 292、 Nim Game You are playing the following Nim Game with your friend: There is a he...

2017-11-29 17:47
56
• #### [Leetcode从零开刷]258. Add Digits

题目来源leetcode Given a non-negative integer num, repeatedly add all its digits until the result has o...

2017-12-01 11:06
39
• #### [Leetcode从零开刷]226. Invert Binary Tree

题目来源： leetcode Invert a binary tree. 翻译：颠倒一个二叉树 解题： 如果不是根节点不用交换。 代码如下， class Solution { ...

2017-12-02 22:44
55
• #### [Leetcode从零开刷]7. Reverse Integer

题目来源leetcode Given a 32-bit signed integer, reverse digits of an integer. For example: 翻译： 给一个32...

2017-12-04 10:26
77
• #### [Leetcode从零开刷]9. Palindrome Number

题目来源： leetcode Determine whether an integer is a palindrome. Do this without extra space Some hin...

2017-12-05 14:21
51
• #### [Leetcode从零开刷]389. Find the Difference

题目来源 leetcode Given two strings s and t which consist of only lowercase letters. String t is gene...

2017-12-11 11:56
43
• #### [Leetcode从零开刷]476. Number Complement

题目来源： leetcode:Given a positive integer, output its complement number. The complement strategy is t...

2017-12-22 15:30
47
• #### [Leetcode从零开刷]657. Judge Route Circle

题目来源： leetcode: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, jud...

2017-12-22 15:49
47
• #### [Leetcode从零开刷]728. Self Dividing Numbers

题目来源： leetcode A self-dividing number is a number that is divisible by every digit it contains. F...

2017-12-24 11:17
72
• #### [Leetcode从零开刷]617. Merge Two Binary Trees

一开始做的题目都不难，但是感觉坚持做下去，还挺有意思的，可以比较各种人的思路和想法，到目前为止还没有哪个题时不看答案做出来的，但是总会有的。 虽然找的工作和算法 计算机不再 有交集，但算法练习，...

2017-12-26 20:19
73
• #### [Leetcode从零开刷]500. Keyboard Row

这个题感觉上还是挺难的。 题目来源： leetcode: Given a List of words, return the words that can be typed using lett...

2017-12-26 23:06
47
• #### [Leetcode从零开刷]561. Array Partition I

题目来源： leetcode:Given an array of 2n integers, your task is to group these integers into n pairs of ...

2017-12-27 14:09
29
• #### [Leetcode从零开刷]461. Hamming Distance

题目来源： leetcode: The Hamming distance between two integers is the number of positions at which the ...

2017-12-27 20:38
49
• #### [Leetcode从零开刷]Maximum Binary Tree

题目来源 ： leetcode Given an integer array with no duplicates. A maximum tree building on this array i...

2018-01-03 22:07
44