码迷,mamicode.com
首页 >  
搜索关键字:刷题    ( 2326个结果
Leetcode刷题第三期Week1——模拟
题目列表来自yxc大佬的AcWing Leetcode提高班第三期 Leetcode 263 Ugly Number 注意:特别地,1是Ugly Number 没什么要注意的,三个循环搞定 class Solution { public: bool isUgly(int num) { if(num ...
分类:其他好文   时间:2020-02-24 20:21:24    阅读次数:59
刷题78. Subsets
一、题目说明 题目78. Subsets,给一列整数,求所有可能的子集。题目难度是Medium! 二、我的解答 这个题目,前面做过一个类似的,相当于求闭包: 刷题22. Generate Parentheses 算了,用最简单的回溯法吧: 性能如下: 三、优化措施 当然,用 刷题22. Genera ...
分类:其他好文   时间:2020-02-24 09:32:10    阅读次数:95
buuctf刷题之旅—web—EasySQL
打开环境,发现依旧是sql注入 GitHub上有源码(https://github.com/team-su/SUCTF-2019/tree/master/Web/easy_sql) index.php源码 <?php session_start(); include_once "config.php ...
分类:数据库   时间:2020-02-23 20:35:01    阅读次数:255
实用网站
https://stackoverflow.com/ 找bug 网站 https://leetcode-cn.com/problemset/all/ 刷题 https://leetcode.com/ 英文 ...
分类:Web程序   时间:2020-02-23 11:39:45    阅读次数:97
刷题76. Minimum Window Substring
一、题目说明 题目76. Minimum Window Substring,求字符串S中最小连续字符串,包括字符串T中的所有字符,复杂度要求是O(n)。难度是Hard! 二、我的解答 先说我的思路: (1)统计t中每个字符出现的次数, (2)用hash存储s中出现t中字符的位置, (3)计算最短字符 ...
分类:Windows程序   时间:2020-02-23 09:48:54    阅读次数:96
刷题75. Sort Colors
一、题目说明 题目75. Sort Colors,给定n个整数的列表(0代表red,1代表white,2代表blue),排序实现相同颜色在一起。难度是Medium。 二、我的解答 这个是一个排序,还是简单的,代码如下: 性能如下: ...
分类:其他好文   时间:2020-02-22 15:29:16    阅读次数:74
leetcode刷题-- 2. 排序(待更新)
排序 参考 "五分钟学算法" 复杂度比较 时间复杂度 O(n2) 各种简单的排序:直接插入、直接选择、冒泡 O(nlog2n) 快速排序、堆排序、归并排序 O(n1+$\lambda$),希尔排序 线性阶O(n)排序,基排序、桶、箱排序 稳定性 稳定排序:冒泡、插入、归并、基数排序 不稳定:选择、快 ...
分类:编程语言   时间:2020-02-22 13:40:19    阅读次数:86
刷题记录
``` #include using namespace std; struct Node{ int id; }; int main(){ Node *t; for(int i = 0; i id = i; if(i == 0){ t = node; } coutid using namespace... ...
分类:其他好文   时间:2020-02-21 20:15:24    阅读次数:61
寒假时间安排
8:00 8:30 早餐 8:40 9:00 英语阅读背单词 9:00 10:30 python基础学习 10:45 12:15 ACwing刷题 12:15 13:00 吃饭 13:00 13:20 休息 13:20 13:40 睡觉 13:50 15:20 ACwing刷题 15:20 15:3 ...
分类:其他好文   时间:2020-02-21 16:20:29    阅读次数:51
PAT-B 刷题(1)
1001~1005 1001 害死人不偿命的(3n+1)猜想 (15分) 1011 A+B 和 C (15分) ...
分类:其他好文   时间:2020-02-21 16:08:22    阅读次数:67
2326条   上一页 1 ... 37 38 39 40 41 ... 233 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!