上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any po 阅读全文
posted @ 2016-02-28 00:17 `Liok 阅读(765) 评论(0) 推荐(0) 编辑
摘要: Count of Smaller Numbers After Self You are given an integer array nums and you have to return a new counts array. The counts array has the property w 阅读全文
posted @ 2016-02-27 20:06 `Liok 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Patching Array Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclu 阅读全文
posted @ 2016-02-27 17:28 `Liok 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Self Crossing You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the wes 阅读全文
posted @ 2016-02-25 23:34 `Liok 阅读(879) 评论(0) 推荐(0) 编辑
摘要: Increasing Triplet Subsequence Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the f 阅读全文
posted @ 2016-02-22 17:00 `Liok 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Reconstruct Itinerary Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in 阅读全文
posted @ 2016-02-18 18:14 `Liok 阅读(519) 评论(0) 推荐(0) 编辑
摘要: Verify Preorder Serialization of a Binary Tree One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we 阅读全文
posted @ 2016-02-05 14:25 `Liok 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Odd Even Linked List Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the no 阅读全文
posted @ 2016-02-04 11:23 `Liok 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Power of Three Given an integer, write a function to determine if it is a power of three. Follow up:Could you do it without using any loop / recursion 阅读全文
posted @ 2016-02-04 11:08 `Liok 阅读(412) 评论(0) 推荐(0) 编辑
摘要: Longest Increasing Path in a Matrix Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to fo 阅读全文
posted @ 2016-02-04 10:57 `Liok 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页