wolf96的专栏

勿在浮沙筑高台、务实、深入思考

面试笔试杂项积累-leetcode 331-335

至此2016-2-15,全部333道题除去锁题和不想做的= =。就都做完了。。。 331.331-Verify Preorder Serialization of a Binary Tree-Difficulty: Medium One way to serialize a b...

2016-02-15 23:07:55

阅读数:1098

评论数:0

面试笔试杂项积累-leetcode 326-330

326.326-Power of Three-Difficulty: Easy Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it wi...

2016-02-15 22:53:19

阅读数:596

评论数:0

面试笔试杂项积累-leetcode 321-325

322.322-Coin Change-Difficulty: Medium You are given coins of different denominations and a total amount of money amount. Write a function to com...

2016-02-15 22:35:46

阅读数:671

评论数:0

面试笔试杂项积累-leetcode 311-320

318.318-Reconstruct Itinerary-Difficulty: Medium Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the t...

2016-02-15 22:30:15

阅读数:589

评论数:0

面试笔试杂项积累-leetcode 306-310

306.306-Additive Number-Difficulty: Medium Additive number is a string whose digits can form additive sequence. A valid additive sequence should ...

2016-02-14 22:35:40

阅读数:660

评论数:0

面试笔试杂项积累-leetcode 301-305

303.303-Range Sum Query - Immutable-Difficulty: Easy Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), i...

2016-02-14 22:27:27

阅读数:591

评论数:0

面试笔试杂项积累-leetcode 291-300

292.292-Nim Game-Difficulty: Easy You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of ...

2016-02-13 23:22:34

阅读数:492

评论数:0

面试笔试杂项积累-leetcode 286-290

289.289-Game of Life-Difficulty: Medium According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular aut...

2016-02-13 23:14:22

阅读数:499

评论数:0

面试笔试杂项积累-leetcode 281-285

283.283-Move Zeroes-Difficulty: Easy Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order ...

2016-02-13 23:07:46

阅读数:428

评论数:0

面试笔试杂项积累-leetcode 271-280

273.273-Integer to English Words-Difficulty: Medium Convert a non-negative integer to its english words representation. Given input is guaranteed ...

2016-02-13 23:03:49

阅读数:476

评论数:0

面试笔试杂项积累-leetcode 261-270

263.263-Ugly Number-Difficulty: Easy Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose p...

2016-02-13 22:44:10

阅读数:403

评论数:0

面试笔试杂项积累-leetcode 246-260

257.257-Binary Tree Paths-Difficulty: Easy Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: ...

2016-02-13 22:26:39

阅读数:517

评论数:4

分治算法 Divide and Conquer Algorithm

分而治之,指的是分治算法.分治算法是基于多分枝递归的一种算法设计模式.分治算法递归地把一个大问题分解为多个类型相同的子问题,直到这些子问题足够的简单能被直接解决.最后把这些子问题的解结合起来就能得到原始问题的解. 原文: http://www.cnblogs.com/Gavin_Liu/arc...

2016-02-13 07:42:59

阅读数:430

评论数:0

面试笔试杂项积累-leetcode 241-245

242.242-Valid Anagram-Difficulty: Easy Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = &qu...

2016-02-12 22:30:35

阅读数:464

评论数:0

面试笔试杂项积累-leetcode 236-240

236.236-Lowest Common Ancestor of a Binary Tree-Difficulty: Medium Given a binary tree, find the lowest common ancestor (LCA) of two given nodes i...

2016-02-12 22:27:00

阅读数:446

评论数:1

面试笔试杂项积累-leetcode 231-235

231.231-Power of Two-Difficulty: Easy Given an integer, write a function to determine if it is a power of two. 方法一 思路 判断一个数是否是2的幂 除和取余,循环 p...

2016-02-12 22:00:50

阅读数:436

评论数:0

面试笔试杂项积累-leetcode 226-230

226.226- Implement Stack using Queues-Difficulty: Easy Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / ...

2016-02-12 21:39:45

阅读数:437

评论数:0

面试笔试杂项积累-leetcode 221-225

221.221-Combination Sum III-Difficulty: Medium Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and retu...

2016-02-11 23:24:45

阅读数:414

评论数:0

面试笔试杂项积累-leetcode 216-220

216.216-Combination Sum III-Difficulty: Medium Find all possible combinations of k numbers that add up to a number n, given that only numbers f...

2016-02-11 23:21:33

阅读数:479

评论数:0

面试笔试杂项积累-leetcode 211-215

211.211-Add and Search Word - Data structure design-Difficulty: Medium Design a data structure that supports the following two operations: void a...

2016-02-11 22:49:52

阅读数:501

评论数:0

提示
确定要删除当前文章?
取消 删除