A little girl loves problems on bitwise operations very much. Here's one of them. You are given two integers l and r. Let's consider the values of for ...
分类:
其他好文 时间:
2017-10-22 21:02:46
阅读次数:
139
Given an unsorted array of integers, find the length of longest continuous increasing subsequence. Example 1: Example 2: Note: Length of the array wil ...
分类:
其他好文 时间:
2017-10-22 11:05:25
阅读次数:
244
1. 原生事件冒泡 事件冒泡: 从内向外扩散,点击input,会扩散到外层的div,一直向上扩散。点击完按钮,会依次执行事件show()和show2() 结果: 先弹出1,后弹出2 使用原生js取消冒泡:ev.cancelBubble=true; 点完按钮后,只弹出1来。 2.Vue中事件冒泡 取消 ...
分类:
其他好文 时间:
2017-10-22 00:21:28
阅读次数:
146
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2017-10-21 19:02:59
阅读次数:
194
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: ...
分类:
其他好文 时间:
2017-10-20 12:02:22
阅读次数:
139
Maximum Subarray Given an array of integers, find a contiguous subarray which has the largest sum. Given the array [?2,2,?3,4,?1,2,1,?5,3], the contig ...
分类:
其他好文 时间:
2017-10-20 12:01:41
阅读次数:
114
You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an ...
分类:
其他好文 时间:
2017-10-20 11:50:01
阅读次数:
115
Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the ...
分类:
编程语言 时间:
2017-10-20 10:19:51
阅读次数:
233
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po ...
分类:
其他好文 时间:
2017-10-19 21:17:44
阅读次数:
198
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro ...
分类:
其他好文 时间:
2017-10-19 19:51:15
阅读次数:
174