- 博客(29)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 LeetCode刷题笔记-76
LeetCode-76. Minimum Window Substring(Hard):Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBE...
2019-11-27 17:34:07
138
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 LeetCode刷题笔记-65
LeetCode-65. 有效数字(Hard):验证给定的字符串是否可以解释为十进制数字。例如:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true" -90e3 " => true" 1e" => false"e3" => false...
2019-11-18 10:51:53
119
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 LeetCode刷题笔记-46
LeetCode-46. Permutations(Medium):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], [2,3,1], [3,1,2...
2019-07-31 23:08:22
86
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 LeetCode刷题笔记-10
LeetCode-10. Regular Expression Matching(Hard):Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*...
2019-07-24 10:58:53
83
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 动态规划-状态转移方程练习
1.给定一个数组penny表示可用的零钱都有哪些面值,再给定一个整数n表示penny的长度,再给定一个整数m表示需要换零钱的整钱面值,输出换钱的方案有几种。样例:[1,2,4],3,3返回:2这是一个比较简单的动态规划问题,dp为状态数组,只使用1的时候有一种方法:3=1+1+1;使用1、2的时候有两种方法:3=1+1+1、3=1+2;使用1、2、4的时候因为4比3大,则还是有两种方法...
2019-07-23 14:17:00
1913
原创 LeetCode刷题笔记-77
LeetCode-77. 组合(中等):给定两个整数 n 和 k,返回 1 ... n 中所有可能的 k 个数的组合。示例:输入: n = 4, k = 2输出:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]我的解法:这道题很自然想到了递归,就像46题中的方法,只不过不能出现重复的元素,想到用集合做(这里提...
2019-11-28 17:11:00
113
原创 java知识总结
1、JDK是java开发工具,他不仅包含JRE,还包含一系列编译、运行工具,如javac,java,javaw等。JRE只是java程序运行环境,核心内容是JVM和核心类库。2、javac是用来把源码编译成class文件的,java是用来运行包含主方法的class文件的。3、“-cp”选项实现java程序编译运行时动态加载类搜索路径。4、C++编译后直接生成机器可运行文件,而java编...
2019-10-22 22:04:13
123
原创 LeetCode刷题笔记-60
LeetCode-60.第k个排列(medium):给出集合 [1,2,3,…,n],其所有元素共有 n! 种排列。按大小顺序列出所有排列情况,并一一标记,当 n = 3 时, 所有排列如下: "123" "132" "213" "231" "312" "321"给定 n 和 k,返回第 k 个排列。说明: 给定 n 的范...
2019-09-25 14:38:40
176
原创 LeetCode刷题笔记-52
LeetCode-51. N-Queens(Hard):The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integern, return the number ofdistinc...
2019-08-25 10:33:49
94
原创 LeetCode刷题笔记-51
LeetCode-51. N-Queens(Hard):The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solution...
2019-08-13 15:51:49
108
原创 LeetCode刷题笔记-50
LeetCode-50. Group Anagrams(Medium):Implement pow(x, n), which calculatesx raised to the power n (xn).Example 1:Input: 2.00000, 10Output: 1024.00000Example 2:Input: 2.10000, 3Output: 9...
2019-08-12 21:58:30
92
原创 LeetCode刷题笔记-49
LeetCode-49. Group Anagrams(Medium):Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat","tan"...
2019-08-11 21:50:16
111
原创 LeetCode刷题笔记-48
LeetCode-48. Rotate Image(Medium):You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which means you ...
2019-08-02 16:55:48
87
原创 LeetCode刷题笔记-47
LeetCode-47. Permutations II(Medium):Given a collection of numbers that might contain duplicates, return all possible unique permutations.Example:Input: [1,1,2]Output:[ [1,1,2], [1,2,1],...
2019-08-02 10:56:50
90
原创 LeetCode刷题笔记-11
LeetCode-11. Container With Most Water(Medium):Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
2019-07-26 10:53:32
213
原创 LeetCode刷题笔记-45
LeetCode-45. Jump Game II(Hard):Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length ...
2019-07-26 10:29:33
99
原创 LeetCode刷题笔记-9
LeetCode-9. Palindrome Number(Easy):Determine whether an integer is a palindrome. An integerisapalindrome when itreads the same backward as forward.Example 1:Input: 121Output: trueExamp...
2019-07-23 16:27:31
134
原创 LeetCode刷题笔记-8
LeetCode-8. String to Integer (atoi)(Medium):Implement atoi whichconverts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitesp...
2019-07-23 16:19:35
168
原创 LeetCode刷题笔记-7
LeetCode-7. Reverse Integer(Easy):Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120...
2019-07-23 15:41:16
96
原创 LeetCode刷题笔记-44
LeetCode-44. Wildcard Matching(Hard):Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches an...
2019-07-21 19:17:43
135
原创 LeetCode刷题笔记-6
LeetCode-6.ZigZag Conversion(Medium):The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better ...
2019-07-19 16:06:31
116
原创 LeetCode刷题笔记-5
LeetCode-5.Longest Palindromic Substring(Medium):Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Outp...
2019-07-19 10:19:57
121
原创 LeetCode刷题笔记-4
LeetCode-4.Median of Two Sorted Arrays(Hard):There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity shou...
2019-07-18 17:40:26
62
原创 LeetCode刷题笔记-3
LeetCode-3.Longest Substring Without Repeating Characters (Medium):Given a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcabcbb"Output: 3 E...
2019-07-18 15:13:52
82
原创 LeetCode刷题笔记-2
LeetCode-2.Add Two Numbers (Medium):You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single d...
2019-07-18 11:15:42
101
原创 LeetCode刷题笔记-1
写在开端: 几个月前用Python刷了几十道题,后来因为别的事停止了,现在想继续刷,考虑到Python的功能太强大并且Java在企业中用的也比较多,后续都用Java来刷,希望能提高自己的代码能力。原则上是按照序号刷,但如果某一类题想集中训练也会跳刷,对每道题做一个记录,提升自己的信心。LeetCode-1.Two Sum(Easy):Given an array of in...
2019-07-18 10:04:36
112
原创 Android学习笔记(一)——项目文件结构
写在前面: 学习Android比较有意思的一点是可以一边学习一边实践,有一台Android设备做测试带给我一种学以致用的满足感,我的Android学习主要是按照郭霖大佬编著的《第一行代码——Android》的进度进行的,根据之前的经验,我觉得有必要写一写学习笔记,希望能够巩固学到的知识,下面就开始吧。Android开发目前比较常用的工具是Android Studio,它的...
2019-06-26 16:38:14
142
转载 SQL注入(1)——MySQL语法基础
SQL注入是很低级的攻击手段了,也是渗透测试的基础吧。原理说起来还是比较简单的,然而自己真正操作起来却发现无从下手,于是决定从MySQL数据库语法学起,巩固一下以前学习的知识。那么,开始吧。注:MySQL语言在Windows系统下不区分大小写,在Linux和Unix系统下的字段名、数据库名、表名都区分大小写。创建数据库CREATE DATABASE dbname删除数...
2019-06-26 09:45:37
187
转载 Python基础——学习手册
Python基本手册 常见内置函数 标准库 爬虫 1 GET 2 POST 3 Headers 字符串 模块 1 定义模块 2 常用的字符串方法 列表list 1 列表相关的内置函数 2 列表元素的循环 3 列表切片 4 列表方法 5 列表嵌套列表 6 文件读写 选择语句 1 布尔逻辑 2 if语句 循环 1 计数 ...
2018-08-04 20:10:04
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人