S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per ...
分类:
编程语言 时间:
2018-06-16 13:20:28
阅读次数:
250
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
移动开发 时间:
2018-06-16 10:30:42
阅读次数:
265
John never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhe ...
分类:
其他好文 时间:
2018-06-15 22:34:43
阅读次数:
128
单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素。 伪元素由双冒号和伪元素名称组成。双冒号是在css3规范中引入的,用于区分伪类和伪元素。但是伪类兼容现存样式,浏览器需要同时支持旧的伪类,比如:first-line、:first-letter、:before、:after 1、伪类与伪 ...
分类:
Web程序 时间:
2018-06-14 15:06:27
阅读次数:
225
单例模式 顾名思义,只有一个实例,如果存在了就不创建了 #!/usr/bin/env python# encoding: utf-8 class Singleton(): def __new__(cls,*args,**kwargs): if not hasattr(cls,'_inst'): cl ...
分类:
编程语言 时间:
2018-06-13 15:19:16
阅读次数:
167
问题描述: Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two w ...
分类:
其他好文 时间:
2018-06-13 11:46:05
阅读次数:
167
handleLetterClick方法,采用emit 传递给父组件 父组件触发的方法: handleLetterChange方法: 父组件传递给子组件: CityList组件: 兄弟组件的传值可以先将值传递给父组件,然后由父组件传递给兄弟组件 2018-06-12 19:52:08 ...
分类:
其他好文 时间:
2018-06-12 20:12:59
阅读次数:
185
什么是模块 在平时的开发过程中,随着代码越写越多,到最后如果要对某一处进行修改就显得难以维护了,稍不注意要是改错了就会出大问题。 所以为了维护的便捷,我们就把很多函数进行分组,放到不同的文件里,就可以通过文件名本身进行功能区分,每个文件里的代码量也会相对较少,更有利于维护,很多语言都是这样的,在Py ...
分类:
其他好文 时间:
2018-06-12 13:34:23
阅读次数:
156
问题描述: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: Input: "25525511135" Output: ...
分类:
其他好文 时间:
2018-06-10 11:53:33
阅读次数:
102
The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote fr ...
分类:
其他好文 时间:
2018-06-09 20:31:00
阅读次数:
198