码迷,mamicode.com
首页 >  
搜索关键字:show all    ( 41857个结果
Linux,unix,cygwin,centeros下的tar压缩解压缩命令详解
tar Examples:   tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.   tar -tvf archive.tar         # List all files in archive.tar verbosely.   tar -xf archive.tar         ...
分类:Windows程序   时间:2014-05-26 03:43:53    阅读次数:556
欧拉项目010:2000000以内的素数和
Summation of primes Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 还是使用Sieve of Eratosthenes 算法 我的python代码如下: ...
分类:其他好文   时间:2014-05-26 03:40:15    阅读次数:243
c 实现的 循环队列
// // fs_loop_queue.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_loop_queue_h #define fsnet_fs_loop_queue_h #include "...
分类:其他好文   时间:2014-05-24 23:36:41    阅读次数:450
LeetCode: Spiral Matrix [058]
【题目】 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] You should return [1,2,3,6,9,8,7,4,5]. 【题意】 螺旋输出MxN...
分类:其他好文   时间:2014-05-24 23:11:02    阅读次数:279
poj 3031 Big Christmas Tree(水spfa)
http://poj.org/problem?id=3013 题意: Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。 正确...
分类:其他好文   时间:2014-05-24 20:27:13    阅读次数:266
c 实现IO流
// // fs_stream.h // fsnet // // Created by Vincent on 14-5-22. // Copyright (c) 2014年 Vincent. All rights reserved. // #ifndef fsnet_fs_stream_h #define fsnet_fs_stream_h #include "fs_define.h"...
分类:其他好文   时间:2014-05-24 18:19:34    阅读次数:372
LeetCode: N-Queens [050]
【题目】 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuratio...
分类:其他好文   时间:2014-05-24 17:12:32    阅读次数:237
LeetCode: Merge Intervals [055]
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. ...
分类:其他好文   时间:2014-05-24 14:18:27    阅读次数:193
LeetCode: Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example, S = "ADOBECOD...
分类:Windows程序   时间:2014-05-24 11:19:26    阅读次数:399
没有使用MVC的应用管理代码
1 // 2 // LWTViewController.m 3 // 应用管理--九宫格 4 // 5 // Created by apple on 14-5-22. 6 // Copyright (c) 2014年 lwt. All rights reserved. 7 /...
分类:Web程序   时间:2014-05-24 10:04:20    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!