3 Longest Substring Without Repeating Characters https://www.youtube.com/watch?v=dH5t6rWmob0 template https://leetcode.com/problems/minimum-window-sub... ...
分类:
其他好文 时间:
2018-08-10 15:57:11
阅读次数:
187
124. Binary Tree Maximum Path Sum https://github.com/tongzhang1994/Facebook-Interview-Coding/blob/master/Longest%20Path%20in%20Binary%20Tree.java http ...
分类:
其他好文 时间:
2018-08-10 15:47:35
阅读次数:
131
求字符串的最长回文子串。 看了hint没看solution。开心。 暴力的思路是O(n^2) start - end pairs and O(n) palindromic checks。但是1000的复杂度只能采用O(n^2)的做法。所以目标是压缩cheak过程的复杂度。关键是:如何利用之前的判断结 ...
分类:
其他好文 时间:
2018-08-07 01:36:14
阅读次数:
112
Questions: [LeetCode] 198. House Robber _Easy tag: Dynamic Programming [LeetCode] 221. Maximal Square _ Medium Tag: Dynamic Programming [LeetCode] 62. ...
分类:
其他好文 时间:
2018-08-07 01:33:58
阅读次数:
141
需要批量操作时候,节省网络连接交互次数,可以使用 bulk_write。 设置ordered=False,因为批量操作中没有互相依赖关系,如果有氰胺后的互相依赖,需要设置为True。 bed_type_match_failed_list = [{'_id': b, 'update_time': da ...
分类:
数据库 时间:
2018-08-06 23:21:48
阅读次数:
334
题目如下: 解题思路:很经典的动态规划题目,但是用python会超时,只好用C++了。 代码如下: ...
分类:
其他好文 时间:
2018-08-04 17:23:36
阅读次数:
116
Description Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those l ...
分类:
其他好文 时间:
2018-08-04 11:47:41
阅读次数:
116
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:
其他好文 时间:
2018-08-04 00:37:15
阅读次数:
192
SELECT /*+ ORDERED */ sql_text FROM v$sqltext a WHERE (a.hash_value, a.address) IN ( SELECT DECODE (sql_hash_value, 0, prev_hash_value, sql_hash_value ...
分类:
数据库 时间:
2018-08-03 01:03:05
阅读次数:
649
This is yet another problem dealing with regular bracket sequences. We should remind you that a bracket sequence is called regular, if by inserting «+ ...
分类:
其他好文 时间:
2018-08-02 23:11:19
阅读次数:
195