/* * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. ...
分类:
编程语言 时间:
2015-09-16 15:27:55
阅读次数:
260
QuestionGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. ...
分类:
其他好文 时间:
2015-09-16 07:30:09
阅读次数:
141
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2015-09-16 06:18:37
阅读次数:
133
B. Bear and Three MusketeersDo you know a story about the three musketeers? Anyway, you will learn about its origins now.Richelimakieu is a cardinal i...
分类:
其他好文 时间:
2015-09-15 21:51:25
阅读次数:
220
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and ...
分类:
其他好文 时间:
2015-09-15 21:36:04
阅读次数:
205
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:
其他好文 时间:
2015-09-15 18:08:34
阅读次数:
208
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:
编程语言 时间:
2015-09-15 01:31:31
阅读次数:
154
Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level...
分类:
其他好文 时间:
2015-09-15 00:00:24
阅读次数:
388
DescriptionThe Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can affor...
分类:
其他好文 时间:
2015-09-14 22:42:09
阅读次数:
210
1 题目Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.2 思路当时看到这个题目就想到的是归并排序。好吧,但是,具体代码写不出来。题目给的是数组:publi...
分类:
其他好文 时间:
2015-09-14 22:41:57
阅读次数:
207