
趣味编程
文章平均质量分 71
zwvista
这个作者很懒,什么都没留下…
展开
-
趣味编程:静夜思(Javascript版)
静夜思(Javascript版)原创 2014-09-23 16:12:38 · 3312 阅读 · 0 评论 -
趣味编程:静夜思(Functional Java版)
静夜思(Functional Java版)原创 2017-05-04 22:38:46 · 1522 阅读 · 0 评论 -
趣味编程:静夜思(Kotlin版)
import java.util.*fun verticalWriting(txt:String, offset:Int) { txt.mapIndexed { i, c -> Pair<Int, Char>(i, c) } .groupByTo(TreeMap(), {it.first % offset}, {it.second.toString()}) .原创 2017-08-01 19:15:37 · 559 阅读 · 0 评论 -
趣味编程:静夜思(Haskell版)
趣味编程:静夜思(Haskell版)原创 2015-05-15 20:37:21 · 1793 阅读 · 0 评论 -
C++14尝鲜,趣味编程:用lambda实现斐波那契数列
用lambda实现斐波那契数列原创 2017-02-22 08:52:54 · 1967 阅读 · 0 评论 -
趣味编程:不使用循环对数组求和
左折叠与右折叠原创 2011-10-21 09:12:48 · 7358 阅读 · 0 评论 -
趣味编程:打印日历
趣味编程:打印日历原创 2015-10-29 13:39:30 · 1443 阅读 · 0 评论 -
趣味编程:静夜思(Scala版)
静夜思(Scala版)原创 2015-07-16 20:59:19 · 1531 阅读 · 0 评论 -
趣味编程:静夜思(F#3.0版)
静夜思(F#3.0版)原创 2015-05-28 14:09:13 · 1616 阅读 · 0 评论 -
趣味编程:静夜思(C++11版)
趣味编程:静夜思(C++11版)原创 2013-02-14 09:27:05 · 3612 阅读 · 0 评论 -
趣味编程:静夜思
C#版本摘自老赵点滴 - 追求编程之美 C#代码using System;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Print(string text, int offset) {原创 2010-04-16 01:00:00 · 2175 阅读 · 0 评论 -
趣味编程:用BGL求解八数码问题(A*)
A* Graph Search Within the BGL Framework 代码#include #include #include #include "nonconst_bfs.hpp" // so we can modify the graph#include #include #include #include #include原创 2010-04-24 01:43:00 · 1451 阅读 · 1 评论 -
趣味编程:用Boost.Spirit 1.x 编写四则运算器
#include #include #include //#define BOOST_SPIRIT_DEBUG#include #include #include using namespace std;using namespace boost;using namespace spirit::classic;using namespace phoenix;struct c原创 2010-05-14 08:18:00 · 1533 阅读 · 0 评论 -
趣味编程:用Boost.Spirit 2.x 编写四则运算器
#include #include #include #include //#define BOOST_SPIRIT_DEBUG#include #include using namespace std;namespace phx = boost::phoenix;namespace qi = boost::spirit::qi;namespace ascii = boost原创 2010-05-14 08:32:00 · 1752 阅读 · 0 评论 -
趣味编程:用LINQ自动“找茬”
编程自动找出两张相似图片中的不同之处原创 2010-06-10 01:33:00 · 981 阅读 · 0 评论 -
趣味编程:用IDA*算法求解八数码问题
用IDA*算法求解八数码问题原创 2010-06-11 11:29:00 · 2112 阅读 · 0 评论 -
趣味编程:用LINQ求解八皇后问题
C#源码摘自优快云论坛.NET技术贴:从n皇后问题看Linq的对算法思想的清晰表达力,原作者sp1234。注:变量名及程序逻辑稍有改动,求解部分加上了注释。 C#代码using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Consol原创 2010-04-18 03:26:00 · 1323 阅读 · 0 评论 -
趣味编程:静夜思(Java8版)
静夜思(Java8版)原创 2014-05-22 19:15:28 · 2671 阅读 · 0 评论