码迷,mamicode.com
首页 >  
搜索关键字:medium    ( 2358个结果)
【Leetcode】 328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:其他好文   时间:2018-02-05 18:42:48    阅读次数:110
428. Pow(x, n)【medium】
Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe ...
分类:其他好文   时间:2018-02-04 21:00:42    阅读次数:136
149. Best Time to Buy and Sell Stock【medium】
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction ...
分类:其他好文   时间:2018-02-04 20:59:10    阅读次数:148
419. Roman to Integer【medium】
Given a roman numeral, convert it to an integer. The answer is guaranteed to be within the range from 1 to 3999. Have you met this question in a real ...
分类:其他好文   时间:2018-02-04 19:38:14    阅读次数:140
57. 3Sum【medium】
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2018-02-04 19:33:56    阅读次数:165
78. Longest Common Prefix【medium】
Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common ...
分类:其他好文   时间:2018-02-04 19:32:36    阅读次数:101
8.1、包,__init__.py,
包: 为了组织好模块,将多个模块组合为一个包,所以包用于存放python模块 包通常是一个文件夹,当文件夹当作包使用时,文件夹需要包含__init__.py文件 __init__.py的内容可以为空,一般用来进行包的某些初始化工作或者设置__all__值,__all__是在from ... impo ...
分类:其他好文   时间:2018-02-04 18:07:05    阅读次数:125
12. Min Stack【medium】
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c ...
分类:其他好文   时间:2018-02-04 13:56:09    阅读次数:144
LeetCode: 60. Permutation Sequence(Medium)
1. 原题链接 https://leetcode.com/problems/permutation-sequence/description/ 2. 题目要求 给出整数 n和 k ,k代表从1到n的整数所有排列序列中的第k个序列,返回String类型的第k个序列 3. 解题思路 ...
分类:其他好文   时间:2018-02-03 23:10:16    阅读次数:177
【DVWA】【SQL Injection(Blind)】SQL盲注 Low Medium High Impossible
1.初级篇 Low.php 加单引号提交 输出用户id没有找到 说明不是用双引号闭合的,尝试一下发现是单引号闭合 构造如下注入,若database名第一个字符为'd',即ascii码为100,页面正常 反之页面不正常 2.中级篇 Medium.php POST 提交 仍然显示存在,事实上id=0并不 ...
分类:数据库   时间:2018-02-02 21:56:36    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!