Binary Tree Inorder Traversal
Total Accepted: 123254 Total
Submissions: 310274 Difficulty: Medium
Given a binary tree, return the inorder traversal of its nodes' values.
For example...
分类:
其他好文 时间:
2016-05-07 11:28:54
阅读次数:
157
Contains Duplicate
Total Accepted: 87674 Total
Submissions: 212037 Difficulty: Easy
Given an array of integers, find if the array contains any duplicates. Your function should return...
分类:
其他好文 时间:
2016-05-07 11:27:21
阅读次数:
144
Binary Tree Level Order Traversal
Total Accepted: 102319 Total
Submissions: 311786 Difficulty: Easy
Given a binary tree, return the level order traversal of its nodes' values. (ie, fro...
分类:
其他好文 时间:
2016-05-07 11:26:15
阅读次数:
176
刚尝试在Windows下搭建Laravel框架:
步骤如下:
1:搭建laravel框架首先要安装composer 地址:http://getcomposer.org/
安装包地址点击打开链接。下一步,指定正确的 php.exe 文件地位(如下图)。
开启 php_openssl 拓展:请打开 php 目次下的 php.ini 文件,亲身确认 extension=php_opens...
分类:
其他好文 时间:
2016-05-07 11:25:32
阅读次数:
156
几种常见的集合:
NSArray/NSMutableArray
NSSet/NSMutableSet
NSDictionary/NSMutableDictionary
1. 不可变有序数组:
void Array()
{
// 创建
// 快速创建的方法只适于创建不可变数组
NSArray *s = @[@"jack", @"rose", @"jerry"...
分类:
其他好文 时间:
2016-05-07 11:28:11
阅读次数:
162
Decode Ways
My Submissions
Question
Editorial Solution
Total Accepted: 68714 Total
Submissions: 391367 Difficulty: Medium
A message containing letters from A-Z is
being encod...
分类:
其他好文 时间:
2016-05-07 11:28:01
阅读次数:
137
Linux简化了分段机制,使得虚拟地址与线性地址总是一致,因此Linux的虚拟地址空间也为0~4G。Linux内核将这4G字节的空间分为两部分。将最高的1G字节(从虚拟地址0xC0000000到0xFFFFFFFF)供内核使用,称为“内核空间”。而将较低的3G字节(从虚拟地址0x00000000到0xBFFFFFFF)供各个进程使用,称为“用户空间“。因为每个进程可以通过系统调用进入内核,因此Li...
分类:
其他好文 时间:
2016-05-07 11:26:21
阅读次数:
256
Maximum Depth of Binary Tree
Total Accepted: 142443 Total
Submissions: 297439 Difficulty: Easy
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes ...
分类:
其他好文 时间:
2016-05-07 11:24:32
阅读次数:
156
Delete Node in a Linked List
Total Accepted: 79448 Total
Submissions: 181414 Difficulty: Easy
Write a function to delete a node (except the tail) in a singly linked list, given only ...
分类:
其他好文 时间:
2016-05-07 11:27:29
阅读次数:
140
Add Digits
Total Accepted: 92455 Total
Submissions: 190510 Difficulty: Easy
Given a non-negative integer num, repeatedly
add all its digits until the result has only one digit.
Fo...
分类:
其他好文 时间:
2016-05-07 11:24:50
阅读次数:
137
Implement Stack using Queues
Total Accepted: 38469 Total
Submissions: 125942 Difficulty: Easy
Implement the following operations of a stack using queues.
push(x) -- Push element x...
分类:
其他好文 时间:
2016-05-07 11:25:07
阅读次数:
176
集合(collection)是一种聚集、组织了其他对象的对象。它定义了一种特定的方式,可以访问、管理所包含的对象(称为该集合的元素)。集合的使用者——通常是软件系统中的另一个类或对象——只能通过这些预定的方式与该集合进行交互。
集合可以分为两大类:线性集合和非线性集合:
线性集合是一种其元素按直线方式组织的集合,通常按照添加的顺序。
非线性集合时一种其元素按某...
分类:
其他好文 时间:
2016-05-07 11:24:24
阅读次数:
116
Implement Queue using Stacks
Total Accepted: 42449 Total
Submissions: 124932 Difficulty: Easy
Implement the following operations of a queue using stacks.
push(x) -- Push element x...
分类:
其他好文 时间:
2016-05-07 11:25:35
阅读次数:
157
SharePoint 2013 图文介绍匿名访问
有人反复文档匿名无法设置成功,我很诧异就做了一边发现很正常,当然有一些问题,其实解决很简单。...
分类:
其他好文 时间:
2016-05-07 11:23:07
阅读次数:
139
问题描述
定义一个二维数组:
int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,
};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。
问题分析
在这个问题中,从开始位置按照4个方向进行搜索...
分类:
其他好文 时间:
2016-05-07 11:25:42
阅读次数:
544
1.synchronized锁住一个方法
2.synchronized锁住一段代码块...
分类:
其他好文 时间:
2016-05-07 11:25:21
阅读次数:
647
Balanced Binary Tree
Total Accepted: 110024 Total
Submissions: 323130 Difficulty: Easy
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced bin...
分类:
其他好文 时间:
2016-05-07 11:23:03
阅读次数:
150