Flask 0.8 introduces instance folders. Flask for a long time made it possible to refer to paths relative to the application’s folder directly (via Fla ...
分类:
其他好文 时间:
2018-09-15 16:31:40
阅读次数:
581
46. Permutations Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3 ...
分类:
其他好文 时间:
2018-09-15 11:31:19
阅读次数:
171
As of TypeScript 2.4, it is now possible to define string enums, or more precisely, enums with string members. Just like any other numeric enum, strin ...
分类:
编程语言 时间:
2018-09-14 18:26:08
阅读次数:
178
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2018-09-13 00:04:00
阅读次数:
220
1,英文文档: git-rebase(1) Manual Page NAME git-rebase - Reapply commits on top of another base tip git-rebase(1) Manual Page NAME git-rebase - Reapply com ...
分类:
其他好文 时间:
2018-09-11 12:19:47
阅读次数:
137
Given an array of n distinct non-empty strings, you need to generate minimal possible abbreviations for every word following rules below. Example: Not ...
分类:
其他好文 时间:
2018-09-11 11:26:32
阅读次数:
313
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p ...
分类:
其他好文 时间:
2018-09-09 19:52:12
阅读次数:
146
全网好像就只有劼和manchery写了博客的样子……;正解可能是最大流?但是仔细特判也能过 题目描述 RMQ问题即区间最值问题是一个有趣的问题。 在这个问题中,对于一个长度为 n 的排列,query(l,r) 将返回 al,?,ar 中的最大值。 如对于 {3,1,4,2,5},query(2,4) ...
分类:
其他好文 时间:
2018-09-09 16:50:00
阅读次数:
200
Given an array of n distinct non-empty strings, you need to generate minimal possible abbreviations for every word following rules below. 1. Begin wit ...
分类:
其他好文 时间:
2018-09-09 15:16:18
阅读次数:
155
[抄题]: Given a binary tree with n nodes, your task is to check if it's possible to partition the tree to two trees which have the equal sum of values a ...
分类:
其他好文 时间:
2018-09-09 12:06:58
阅读次数:
195