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
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
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
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
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
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
包: 为了组织好模块,将多个模块组合为一个包,所以包用于存放python模块 包通常是一个文件夹,当文件夹当作包使用时,文件夹需要包含__init__.py文件 __init__.py的内容可以为空,一般用来进行包的某些初始化工作或者设置__all__值,__all__是在from ... impo ...
分类:
其他好文 时间:
2018-02-04 18:07:05
阅读次数:
125
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
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
1.初级篇 Low.php 加单引号提交 输出用户id没有找到 说明不是用双引号闭合的,尝试一下发现是单引号闭合 构造如下注入,若database名第一个字符为'd',即ascii码为100,页面正常 反之页面不正常 2.中级篇 Medium.php POST 提交 仍然显示存在,事实上id=0并不 ...
分类:
数据库 时间:
2018-02-02 21:56:36
阅读次数:
316