// Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"var str1="test"str1println("ddddd")let implmentInteger : D...
分类:
编程语言 时间:
2014-09-21 22:44:01
阅读次数:
348
Remove Duplicates from Sorted Array IGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new len...
分类:
其他好文 时间:
2014-09-21 14:50:00
阅读次数:
209
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it to ...
分类:
其他好文 时间:
2014-09-20 10:07:27
阅读次数:
162
[leetcode]Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place....
分类:
其他好文 时间:
2014-09-19 10:10:15
阅读次数:
200
WERTYUTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 8371Accepted: 4007Description A common typing error is to place the hands on the keyboa...
分类:
其他好文 时间:
2014-09-18 21:58:24
阅读次数:
221
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-09-16 04:57:10
阅读次数:
134
原题地址:https://oj.leetcode.com/problems/reverse-linked-list-ii/题意:Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Gi...
分类:
编程语言 时间:
2014-09-14 23:38:47
阅读次数:
239
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-09-13 22:39:06
阅读次数:
238
Problem Description
Harry: "But Hagrid. How am I going to pay for all of this? I haven't any money."
Hagrid: "Well there's your money, Harry! Gringotts, the wizard bank! Ain't no safer place. Not ...
分类:
其他好文 时间:
2014-09-13 10:40:35
阅读次数:
299
DescriptionConsider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithm...
分类:
其他好文 时间:
2014-09-11 23:36:12
阅读次数:
265