由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - how to do it ?????
相关主题
What is the output of the following code?嵌入式系统用什么sorting算法比较好?
underlying sort algorithm for SET in STL?如何让python dictionary sorting 的速度变得很快?
MatLab Code[合集] 微软另一道智力题,求救
C -> assemblyhelp- date is incorrectly converted when read csv using vba in excel
A STL sorting algorithm problem如何测量最大内存消耗?
问一个基本问题如何用tornado web server写可以处理curl命令的程序
如何 randomize 一个sorted的文件 ?$100求个小软件:下载我paypal上全部的transaction
如何sort and merge n 个sorted linked listperl webcrawler needed to download google trend data
相关话题的讨论汇总
话题: sort话题: do话题: digit话题: row话题: look
进入Programming版参与讨论
1 (共1页)
m*********y
发帖数: 127
1
Sort a CSV file which have exactly four numbers in each row.
Sort on the basis first number of the row. In case first digit is same, look
for the second digit. If required, look for the 3rd or 4th number.
Sample input:
1,3,6,7
-3,2,7,8
1,1,6,7
8,-3,5,4
-3,2,7,7
…..
….

Output:
-3,2,7,7
-3,2,7,8
1,1,6,7
1,3,6,7
8,-3,5,4
P********e
发帖数: 2610
2
简单方法就是用excel打开,sort
写程序就按string读进来sort

look

【在 m*********y 的大作中提到】
: Sort a CSV file which have exactly four numbers in each row.
: Sort on the basis first number of the row. In case first digit is same, look
: for the second digit. If required, look for the 3rd or 4th number.
: Sample input:
: 1,3,6,7
: -3,2,7,8
: 1,1,6,7
: 8,-3,5,4
: -3,2,7,7
: …..

w****i
发帖数: 964
3
in linux, sort --stable for each column
1 (共1页)
进入Programming版参与讨论
相关主题
perl webcrawler needed to download google trend dataA STL sorting algorithm problem
问个matlab 数据读入的问题问一个基本问题
问一个python问题如何 randomize 一个sorted的文件 ?
一个搞统计的对C#的第一印象如何sort and merge n 个sorted linked list
What is the output of the following code?嵌入式系统用什么sorting算法比较好?
underlying sort algorithm for SET in STL?如何让python dictionary sorting 的速度变得很快?
MatLab Code[合集] 微软另一道智力题,求救
C -> assemblyhelp- date is incorrectly converted when read csv using vba in excel
相关话题的讨论汇总
话题: sort话题: do话题: digit话题: row话题: look