
MyLeetCode
冰涛
主要职责是大数据方向的算法研究,目前研究的是文本挖掘相关的算法。
展开
-
287. 发现重复的数量(Find the Duplicate Number)
1 题目Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate原创 2017-01-08 17:44:24 · 387 阅读 · 0 评论 -
190. Reverse Bits
1 题目Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as原创 2017-02-23 17:26:57 · 310 阅读 · 0 评论 -
102. Binary Tree Level Order Traversal
1 题目Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree [3,9,20,null,null,15,7], 3原创 2017-02-23 16:15:54 · 268 阅读 · 0 评论 -
111. Minimum Depth of Binary Tree
1 题目Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.2代码/** * Defi原创 2017-02-23 16:07:46 · 263 阅读 · 0 评论 -
104. Maximum Depth of Binary Tree
1 题目Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.2 代码/** * Def原创 2017-02-23 15:45:48 · 304 阅读 · 0 评论 -
110. Balanced Binary Tree
1 题目Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node n原创 2017-02-23 09:41:17 · 306 阅读 · 0 评论 -
108. Convert Sorted Array to Binary Search Tree
1 题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.2 代码/** * Definition for a binary tree node. * public class TreeNode { * int val;原创 2017-02-22 21:39:17 · 245 阅读 · 0 评论 -
107. Binary Tree Level Order Traversal II
1 题目Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree [3,9,20,n原创 2017-02-22 20:55:31 · 250 阅读 · 0 评论 -
21. Merge Two Sorted Lists
1 题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.2 代码/** * Definition for singly-linked list.原创 2017-01-08 18:02:46 · 240 阅读 · 0 评论 -
15. 3Sum
1 题目iven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must no原创 2017-01-08 17:58:04 · 265 阅读 · 0 评论 -
399. Evaluate Division
1 题目Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers.原创 2017-01-08 17:52:32 · 280 阅读 · 0 评论 -
1. 两数字求和 (Two Sum)
1 题目Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example:Gi原创 2017-01-08 17:48:17 · 487 阅读 · 0 评论