题目1: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to ...
分类:
其他好文 时间:
2017-02-18 00:56:17
阅读次数:
220
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2017-02-16 00:14:49
阅读次数:
155
在你使用behave或其他BDD框架之前, 你应该选择一个断言库。 python有很多这方面的第三方库。例如: hamcrest,nose.tools, should-dsl, sure, compare, describe等。选择一个自己喜欢的。 参数化step 场景概要(scenario out ...
分类:
其他好文 时间:
2017-02-15 16:38:50
阅读次数:
258
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2017-02-15 15:00:33
阅读次数:
170
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. tag : du ...
分类:
其他好文 时间:
2017-02-14 20:21:13
阅读次数:
130
For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i ...
分类:
其他好文 时间:
2017-02-12 18:47:13
阅读次数:
126
Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].Note:Each element i... ...
分类:
其他好文 时间:
2017-02-11 15:50:40
阅读次数:
202
Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing su ...
分类:
其他好文 时间:
2017-02-10 23:36:25
阅读次数:
221
Mahmoud wrote a message s of length n. He wants to send it as a birthday present to his friend Moaz who likes strings. He wrote it on a magical paper ...
分类:
其他好文 时间:
2017-02-10 01:43:56
阅读次数:
264
Freedom of Choice URAL - 1517 Background Before Albanian people could bear with the freedom of speech (this story is fully described in the problem "F ...
分类:
其他好文 时间:
2017-02-09 23:03:20
阅读次数:
210