Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
分类:
其他好文 时间:
2017-12-20 13:26:38
阅读次数:
173
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp ...
分类:
其他好文 时间:
2017-12-12 23:56:39
阅读次数:
310
not one pass: 1)Take 2 pointer move one pointer by 5 position ie, the difference between the two pointer is 5. 2)Now traverse through the list till th ...
分类:
其他好文 时间:
2017-12-10 11:15:15
阅读次数:
186
In this lesson, you will learn what mutable and immutable objects are, and the difference between them. This understanding will help you determine whe ...
分类:
编程语言 时间:
2017-12-09 19:32:54
阅读次数:
134
page3.Overview of Blocking vs Non-Blocking This overview covers the difference between blocking and non-blocking calls in Node.js. This overview will ...
分类:
Web程序 时间:
2017-12-08 23:57:18
阅读次数:
276
题目描述:给定一个由时间字符组成的列表,找出任意两个时间之间最小的差值。 思路: 1. 把给定的链表排序,并且在排序的同时把60进制的时间转化成十进制整数; 2. 遍历排序的数组,求出两个相邻值之间的差值; 3. 求出首尾两个值之间的差值。 python class Solution(object) ...
分类:
编程语言 时间:
2017-12-03 13:59:53
阅读次数:
202
是不是dp[i][j]是到a[i]和b[j]的最小diff之和 那么dp[i][j] = min( dp[i-1][j-1]+math.abs(a[i]-b[j]), dp[i][j-1]) 第一个是肯定包含b[j]的,第二个是肯定不包含b[j]的, ...
分类:
其他好文 时间:
2017-12-02 14:08:59
阅读次数:
129
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
其他好文 时间:
2017-12-02 11:05:27
阅读次数:
100
[MY NOTE] Translate Source:http://www.dotnettricks.com/learn/webapi/difference-between-wcf-and-web-api-and-wcf-rest-and-web-service Web Service 1.基于SO ...
[MY NOTE] Translate Source:http://www.dotnettricks.com/learn/webapi/difference-between-wcf-and-web-api-and-wcf-rest-and-web-service Web Service 1.基于SO ...