Description Description Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is count ...
分类:
其他好文 时间:
2019-12-21 22:27:54
阅读次数:
111
Description Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), guarantee that at least one duplicate num ...
分类:
其他好文 时间:
2019-12-21 20:53:19
阅读次数:
114
Description Description Given n books and each book has the same number of pages. There are k persons to copy these books and the i-th person needs ti ...
分类:
其他好文 时间:
2019-12-21 20:50:07
阅读次数:
82
# class Foo:# def f1(self):# print('Foo.f1')# def f2(self):# print('Foo.f2')# self.f1()## class Bar(Foo):# def f1(self):# print('Bar.f1')## obj=Bar()# ...
分类:
其他好文 时间:
2019-12-21 20:31:01
阅读次数:
92
Description Given n books and the i-th book has pages[i] pages. There are k persons to copy these books. These books list in a row and each person can ...
分类:
其他好文 时间:
2019-12-21 20:19:45
阅读次数:
111
cookie的设置 function setCookie(key,value,options){ options=options||{}; var time=""; if(options.expires){ var d=new Date(); d.setDate(d.getDate()+option ...
分类:
其他好文 时间:
2019-12-21 15:55:59
阅读次数:
103
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the bi ...
分类:
其他好文 时间:
2019-12-21 09:41:37
阅读次数:
92
Emerged since c++11, lambda expression/function is an unnamed function object capable of capturing variables in scope. 1. syntax of a lambda expressio ...
分类:
编程语言 时间:
2019-12-21 09:32:48
阅读次数:
86
CENTOS7的防火墙系统默认已经从iptable改成了firewall,使用方法也有所不同,下面是详细介绍 一、管理端口 列出 dmz 级别的被允许的进入端口 # firewall-cmd --zone=dmz --list-ports 允许 tcp 端口 8080 至 dmz 级别 # fire ...
分类:
其他好文 时间:
2019-12-20 22:33:08
阅读次数:
215
c++中引用类型,引用是如何引用的呢? + 引用 引用概念,给变量起个别名,本质是给内存空间取个别名 引用是c++的语法概念、引用的意义(好用) 引用本质:有地址、定义时必须初始化,c++编译器内部按照指针常量 引用结论:间接赋值成立的三个条件的后两步和二为一 引用使用原则:当用引用时,我们不去关心 ...
分类:
编程语言 时间:
2019-12-20 18:27:36
阅读次数:
73