不会跑
work for life
首页
文章
关于
目录
标签
10
Jun 2017
LeetCode-clone_graph
克隆一个图, 用了两个遍历方法如下: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ’s ...
07
Jun 2017
LeetCode-binary-tree-level-order-traversal
Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level). Fo...
06
Jun 2017
LeetCode-Lowest_Common_Ancestor_of_a_Binary_Search_Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the ...
06
Jun 2017
LeetCode-Serialize and Deserialize BST
序列化和反序列化一个二叉搜索树,题目的意思是想让我利用搜索树的性质来做,但是我还是坚持了使用按层和先序遍历的方法,仅供参考,原题如下: Serialization is the process of converting a data st...
06
Jun 2017
LeetCode-delete_a_node_in_BST
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node refe...
04
Jun 2017
LeetCode-Top_K_Frequent_Elements
Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2, re...
03
Jun 2017
LeetCode–brick_wall
比较有意思的题, 求最少穿过的砖的块数,原题连接:https://leetcode.com/problems/brick-wall/ There is a brick wall in front of you. The wall is re...
03
Jun 2017
LeetCode–longest_substring_without_repeating_char
这是一个面试的经典题,明显是个送分题:) Given a string, find the length of the longest substring without repeating characters. Examples: Gi...
02
Jun 2017
LeetCode–Convert_Sorted_List_to_Binary_Search_Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. # _*_ codi...
01
Jun 2017
LeetCode–Remove_Duplicates_from_Sorted_List_II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the origina...
← Prev page
Next page →