上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 138 下一页

2017年6月22日

给定字典做分词

摘要: 近期须要用到分词,无聊写个算法。。。算法:给定一个字典和一句话,做分词。Target:输入词典,输出全部可能的分词结果思路:dfs加速:首先推断是不是这句话里全部的词在字典中都有(validate)// // Wordsplit.cpp // // Target: Find all possible 阅读全文

posted @ 2017-06-22 16:12 wgwyanfs 阅读(143) 评论(0) 推荐(0) 编辑

高仿一元云购IOS应用源代码项目

摘要: 高仿一元云购IOS应用(高仿自一元云购安卓client) 本App因官方没有IOSclient故开发。利用业务时间历时2个星期。最终开发完毕,又因苹果的各大审核规则对此App的影响,又历时1个多月才最终成功上架,上架两天,用户量成功破千。But。因官方认为咱涉及侵权。故鄙人从AppStore下架。故 阅读全文

posted @ 2017-06-22 16:10 wgwyanfs 阅读(194) 评论(0) 推荐(0) 编辑

POJ 3130 & ZOJ 2820 How I Mathematician Wonder What You Are!(半平面相交 多边形是否有核)

摘要: 题目链接:http://poj.org/problem?id=3130 Description After counting so many stars in the sky in his childhood, Isaac, now an astronomer and a mathematician 阅读全文

posted @ 2017-06-22 16:10 wgwyanfs 阅读(81) 评论(0) 推荐(0) 编辑

增加收藏兼容主流浏览器代码

摘要: //增加收藏 function AddFavorite(){ if (document.all) { addToBookMark(window.location.href, document.title); } else if (window.sidebar) { addToBookMark(doc 阅读全文

posted @ 2017-06-22 16:09 wgwyanfs 阅读(99) 评论(0) 推荐(0) 编辑

【leetcode】Multiply Strings

摘要: 题目:给定两个表示大数的字符串。求乘积,这里仅仅针对正数。 分析:開始的时候打算一位一位的算。按着笔算的形式。可是写着写着发现太麻烦,后来在网上找到计算乘法的令一种技巧,感觉简洁多了。 先看代码,再分析。 string multiply(string num1, string num2) { if( 阅读全文

posted @ 2017-06-22 16:08 wgwyanfs 阅读(77) 评论(0) 推荐(0) 编辑

JAVA实现二进制和16进制之间的互相转换,8进制同理,附带异或操作实现

摘要: public static String bin2Hex(String binStr) { int deci = Integer.valueOf(binStr,2); return Integer.toHexString(deci); } public static String hex2Bin(S 阅读全文

posted @ 2017-06-22 16:07 wgwyanfs 阅读(294) 评论(0) 推荐(0) 编辑

编译linux内核时出现"mkimage" command not found - U-Boot images will not be built错误的解决的方法

摘要: 在ubuntu12.04编译内核 uImage 时出现例如以下错误。 Kernel: arch/arm/boot/zImage is ready UIMAGE arch/arm/boot/uImage "mkimage" command not found - U-Boot images will 阅读全文

posted @ 2017-06-22 16:06 wgwyanfs 阅读(107) 评论(0) 推荐(0) 编辑

cocos2dx项目中新增场景类

摘要: 从0開始创建一个cocos2dx项目然后执行是能够的,可是假设我们要自己来创建属于自己的场景类呢? 理论永远仅仅是停留在理论,实践过后才知道问题并非那么简单: 初步尝试: 1.在项目project中的classes目录中右击-加入-新建项--,然后開始写类代码; 2.在逻辑类中引用的时候就出问题了, 阅读全文

posted @ 2017-06-22 16:05 wgwyanfs 阅读(151) 评论(0) 推荐(0) 编辑

java实现一个月的最后一个星期天

摘要: Calendar instance = Calendar.getInstance(); System.out.println(instance.getTime()); instance.add(Calendar.MONTH, 1);//月份+1 instance.set(Calendar.DAY_O 阅读全文

posted @ 2017-06-22 16:05 wgwyanfs 阅读(397) 评论(0) 推荐(0) 编辑

HDU 2446 Shell Pyramid(二分查找 数学)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2446 Problem Description In the 17th century, with thunderous noise, dense smoke and blazing fire, batt 阅读全文

posted @ 2017-06-22 16:04 wgwyanfs 阅读(244) 评论(0) 推荐(0) 编辑

上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 138 下一页

导航