有小伙伴提到GDB的使用问题,记得有一篇文章结合实例讲解很不错,可惜没有出处(好吧是我懒得找233)贴上来吧~GDB是GNU开源组织发布的一个强大的UNIX下的程序调试工具。或许,各位比较喜欢那种图形界面方式的,像VC、BCB等IDE的调试,但如果你是在UNIX平台下做软件,你会发现GDB这个调试工...
分类:
数据库 时间:
2015-04-19 15:57:35
阅读次数:
164
本函数是实现对可迭代对象iterable进行排序。可选参数key是比较键的函数;reverse是表示是否反向排列对象里的项,是布尔值。例子:#sorted()
print(sorted([5, 2, 3, 1, 4]))
print(sorted({1: 'D', 2: 'B', 3: 'B', 4: 'E', 5: 'A'}, reverse = True))
print(sorted("Th...
分类:
编程语言 时间:
2015-04-19 14:42:52
阅读次数:
211
来源: 360 CTF 2014 题目:找到程序中的flag 类型: Reverse 分数: 160 难度:难(难中易三个级别) 描述: 提示:请先搭建该EXE的执行环境1. 在本地安装appserv[如果不知道appserv是啥,请自行so.com一下],配置HTTP端口为802. 将您修改后的E...
分类:
其他好文 时间:
2015-04-18 17:21:57
阅读次数:
209
python sorted排序Python不仅提供了list.sort()方法来实现列表的排序,而且提供了内建sorted()函数来实现对复杂列表的排序以及按照字典的key和value进行排序。sorted函数原型sorted(data, cmp=None, key=None, reverse=Fa...
分类:
编程语言 时间:
2015-04-18 14:23:39
阅读次数:
148
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".For C programmers: Try to solv...
分类:
其他好文 时间:
2015-04-17 18:05:36
阅读次数:
108
Reverse Integer
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
解题思路:
这道题比较简单,需要注意的就是要考虑int类型翻转之后,可能会溢出,若溢出,则返回0。先用一个long long类型来存储结果,然后转化成int类...
分类:
其他好文 时间:
2015-04-17 15:48:23
阅读次数:
98
题目:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen lef...
分类:
其他好文 时间:
2015-04-17 15:15:10
阅读次数:
114
Given an input string, reverse the string word by word.For example, Given s = "the sky is blue", return "blue is sky the".Update (2015-02-12): For C p...
分类:
其他好文 时间:
2015-04-17 09:41:26
阅读次数:
116
把以字符串表示的两个二进制数相加。【思路】活学活用昨天学到的reverse。将倒序相加变成正序相加。但这样的话,就要用到三个reverse,两个原串,最后还要把结果翻转。可能对速度有影响,经测试,好像还比不翻转快一点点。一个point是,两串长度不同,一串加完了另一串怎么办?我的办法是将其视为0,这...
分类:
其他好文 时间:
2015-04-17 09:33:59
阅读次数:
135
Reverse Bits2015.4.17 05:42Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as000000101001010...
分类:
其他好文 时间:
2015-04-17 07:09:09
阅读次数:
108