上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页

2015年3月15日

Anagrams

摘要: Anagrams问题:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路: Anagrams:排序后的String作为... 阅读全文

posted @ 2015-03-15 16:10 zhouzhou0615 阅读(140) 评论(0) 推荐(0) 编辑

Letter Combinations of a Phone Number

摘要: Letter Combinations of a Phone Number问题:iven a digit string, return all possible letter combinations that the number could represent.A mapping of digi... 阅读全文

posted @ 2015-03-15 15:48 zhouzhou0615 阅读(196) 评论(0) 推荐(0) 编辑

Binary Tree Level Order Traversal

摘要: Binary Tree Level Order Traversal问题: Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, lev... 阅读全文

posted @ 2015-03-15 15:18 zhouzhou0615 阅读(138) 评论(0) 推荐(0) 编辑

Copy List with Random Pointer

摘要: Copy List with Random Pointer问题:A linked list is given such that each node contains an additional random pointer which could point to any node in the ... 阅读全文

posted @ 2015-03-15 11:51 zhouzhou0615 阅读(210) 评论(0) 推荐(0) 编辑

Remove Duplicates from Sorted List II

摘要: Remove Duplicates from Sorted List II问题:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the... 阅读全文

posted @ 2015-03-15 11:21 zhouzhou0615 阅读(114) 评论(0) 推荐(0) 编辑

Min Stack

摘要: Min Stack问题:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop(... 阅读全文

posted @ 2015-03-15 10:52 zhouzhou0615 阅读(108) 评论(0) 推荐(0) 编辑

2015年3月14日

Compare Version Numbers

摘要: Compare Version Numbers问题:Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 two) return 1; if(one v2.... 阅读全文

posted @ 2015-03-14 20:32 zhouzhou0615 阅读(138) 评论(0) 推荐(0) 编辑

Excel Sheet Column Title

摘要: Excel Sheet Column Title问题:Given a positive integer, return its corresponding column title as appear in an Excel sheet.思路: 进制访问问题我的代码:public class So... 阅读全文

posted @ 2015-03-14 20:06 zhouzhou0615 阅读(114) 评论(0) 推荐(0) 编辑

Binary Tree Zigzag Level Order Traversal

摘要: Binary Tree Zigzag Level Order Traversal问题:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, t... 阅读全文

posted @ 2015-03-14 17:54 zhouzhou0615 阅读(153) 评论(0) 推荐(0) 编辑

Minimum Depth of Binary Tree

摘要: Minimum Depth of Binary Tree问题:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the r... 阅读全文

posted @ 2015-03-14 16:09 zhouzhou0615 阅读(155) 评论(0) 推荐(0) 编辑

上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页

导航