码迷,mamicode.com
首页 >  
搜索关键字:排序 python    ( 180003个结果)
[leetcode]Merge Intervals @ Python
原题地址:https://oj.leetcode.com/problems/merge-intervals/题意:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6]...
分类:编程语言   时间:2014-06-12 14:55:49    阅读次数:235
[leetcode]Maximum Depth of Binary Tree @ Python
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:编程语言   时间:2014-06-12 13:55:34    阅读次数:210
C期未考试参考答案
输入10个数,要求编写一个排序函数,能够实现按绝对值从大到小排序。在主函数中输入10个数、输出排序后的10个数#include#include#define N 3main(){ void max(int a[N]); int b[N],i,j; for(i=0;iabs(x[k])) k=j;.....
分类:其他好文   时间:2014-06-12 12:35:28    阅读次数:199
python的几个问题
刚投了一个实习简历,被电话打过来问了几个问题,外面下着大雨,一开始也没听见。。问的是几个python的问题,被问傻了,哎,写下来记住。1 lambda匿名函数使用Python写一些执行脚本时,使用lambda可以省去定义函数的过程,让代码更加精简。对于一些抽象的,不会别的地方再复用的函数,有时候给函...
分类:编程语言   时间:2014-06-12 12:13:31    阅读次数:243
笔试测试开发题三道(python)
笔试测试开发题三道,make下!
分类:编程语言   时间:2014-06-12 09:48:05    阅读次数:300
mysql的order by 排序问题
1. order by id desc desc : 降序,也就是从大到小,asc 升序 就是从小到大2. 当有多个字段排序时: 比如: order by id desc,sort desc; 优先按id 降序排序,如果id相同的话再按sort 降序排序 如果id是主键或者是唯一的 那么后面的...
分类:数据库   时间:2014-06-12 09:30:33    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!