码迷,mamicode.com
首页 > 其他好文
A Tour of Go Range
Therangeform of theforloop iterates over a slice or map.package mainimport "fmt"var pow = []int{1, 2, 4, 8, 16, 32, 64, 128}func main() { for i, v ...
分类:其他好文   时间:2014-10-27 06:52:09    阅读次数:183
beanutils中WrapDynaBean
public class Emp { private String firstName="李"; private String lastName; public Emp() { } ; public String getFirstName() { return firstName; } pub...
分类:其他好文   时间:2014-10-27 06:52:17    阅读次数:218
beanutils设置参数和获取参数
public class Employee implements DynaBean { private String firstName="李"; private String lastName; public Employee() { } ; public String getFirstNam.....
分类:其他好文   时间:2014-10-27 06:52:31    阅读次数:226
[Leetcode] Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.Solution:/** * Definition for binary tree * public cl...
分类:其他好文   时间:2014-10-27 06:51:31    阅读次数:137
调整JVM堆内存解决OutOfMemoryError
遇到OutOfMemoryError后,借助jconsole工具,经过多次调整JVM的HeapSize解决了问题。
分类:其他好文   时间:2014-10-27 06:51:41    阅读次数:243
Go Slices: usage and internals
IntroductionGo's slice type provides a convenient and efficient means of working with sequences of typed data. Slices are analogous to arrays in other...
分类:其他好文   时间:2014-10-27 06:50:33    阅读次数:264
特征提取与特征选择
模式识别 机器学习 特征提取和特征选择...
分类:其他好文   时间:2014-10-27 01:49:59    阅读次数:225
链表的倒序输出
链表的倒序输出,我们可能想到的方法就是把链表翻转后然后再遍历一遍,这样的话时间复杂度是O(n),但是缺点是代码稍微复杂。或者是开辟一个数组,顺序遍历一个链表把元素复制到数组里面,最后再把数组倒序输出。其实这道题目时间复杂度都不可能低于O(n),但是考虑用栈的话代码就可能非常简单,代码如下所示: #include using namespace std; struct Node { int ...
分类:其他好文   时间:2014-10-27 01:47:56    阅读次数:179
最简单易用的verilog学习练习工具silos初次使用。
最近开始学verilog数字硬件语言编程,然而用什么解释器好呢? 有推荐modelsim+quart但太大了,决定要silos...
分类:其他好文   时间:2014-10-27 01:48:36    阅读次数:738
POJ 3905 Perfect Election(2-sat)
POJ 3905 Perfect Election 题目链接 思路:很裸的2-sat,就根据题意建边即可 代码: #include #include #include #include #include using namespace std; const int MAXNODE = 2005; struct TwoSet { int n; vector ...
分类:其他好文   时间:2014-10-27 01:46:37    阅读次数:183
逗比学习树莓派之初篇
树莓派的官网提供了三个版本的镜像文件,还有无数第三方的镜像,由于是初次接触,还是用官网的Raspbian版本,因为是基于Debian的,所以Debian的一些命令和配置方法可以用得上。还要下载Win32DiskImager工具,用于在Windows下将下载的IMG文件写入到SD卡中...
分类:其他好文   时间:2014-10-27 01:48:06    阅读次数:235
hdu - 4974 - A simple water problem(贪心 + 反证)
题意:N个队(N 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4974 ——>>我们应该尽量使每场比赛的得分为1 : 1,这样可以达到最少的比赛场数(不小于单个队伍的分数)。 假设有2场比赛的比分为1 : 0, 1)a : b = 1 : 0,c : d = 1 : 0,这时可以安排a : c = 1 : 1,只需1场就可达到相同的分数。...
分类:其他好文   时间:2014-10-27 01:46:39    阅读次数:207
ORA-32001: write to SPFILE requested but no SPFILE specified at startup
SQL> alter system set sga_max_size=2048M scope=spfile; alter system set sga_max_size=2048M scope=spfile * ERROR at line 1: ORA-32001: write to SPFILE ...
分类:其他好文   时间:2014-10-27 01:45:12    阅读次数:179
A Tour of Go Slicing slices
---恢复内容开始---Slices can be re-sliced, creating a new slice value that points to the same array.The expressions[lo:hi]evaluates to a slice of the elemen...
分类:其他好文   时间:2014-10-27 01:46:25    阅读次数:215
[Leetcode] Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Solution: 1 public class Solution { 2 pu...
分类:其他好文   时间:2014-10-27 01:47:12    阅读次数:139
“学霸系统”之NABC
我们团队这次选择的是“学霸系统”客户端项目:1.需求(need)作为一款和网上教学问答系统具有相似功能的手机客户端,具体的功能已给出要求:用户管理、搜索、分类、上传下载、用户贡献与交互等功能。(1)用户管理:基本的用户信息实现,用户的注册,登录,账户管理。(2)搜索:根据用户给出的关键词搜索相关的文...
分类:其他好文   时间:2014-10-27 01:45:46    阅读次数:272
月入万元的SEO优化师:分享我几年接私单的经历
导读:优化师阿亮是一名具有十年SEO经验的优化师,从2004年踏入这个行业一直到2013年辞职下海自己做接私单优化,从刚开始的收入不错到后面步履维艰,2014年通过云客网接单,到现在已月入万元以上,下面就分享下主人翁这段酸甜苦辣的经历。我叫阿亮,我是一名SEO优化师,2004年跨入了SEO这个行业,...
分类:其他好文   时间:2014-10-27 01:44:36    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!