码迷,mamicode.com
首页 > 其他好文
programming-challenges Shoemaker's Problem (110405) 题解
Greedy.  证明: Let's say we have job 1, 2, ..., n, and they have time and fine as t1, f1, t2, f2, ..., tn, fn and they are in the order of t1/f1 So this is the objective schedule. Now w...
分类:其他好文   时间:2015-07-07 16:59:38    阅读次数:141
ok6410 uboot 网卡驱动
ok6410使用的网卡是DM9000,从启动信息来看uboot默认的网卡是CS8900。 修改驱动代码(board/Samsung/ok6410/ok6410.c): int board_eth_init(bd_t *bis) {         int rc = 0; #ifdef CONFIG_CS8900         rc = cs8900_initialize(0,CONF...
分类:其他好文   时间:2015-07-07 16:58:59    阅读次数:161
uploadify 3.2 在谷歌浏览器下加载崩溃解决方案
页面中使用uploadify,在google浏览器中会出现浏览器崩溃的问题,如下图所示: 通过百度查资料找到了解决方案,如下: setTimeout(function(){ $("#file").uploadify({ //... }); },10);记录下来,希望可以帮助其他人...
分类:其他好文   时间:2015-07-07 16:56:37    阅读次数:165
Project Euler:Problem 55 Lychrel numbers
If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is...
分类:其他好文   时间:2015-07-07 16:56:48    阅读次数:113
[LeetCode]10.Regular Expression Matching
题目mplement regular expression matching with support for '.' and '*'.'.' Matches any single character. '*' Matches zero or more of the preceding element.The matching should cover the entire input string...
分类:其他好文   时间:2015-07-07 16:54:00    阅读次数:201
MEAN框架学习笔记
MEAN开发框架的资料很少,主要的资料还是来自于learn.mean.io网站上的介绍。于是抱着一种零基础学习的心态,在了解的过程中,通过翻译加上理解将MEAN框架一点点消化并且吸收,一步一步来,慢慢地记录我学习MEAN的点点滴滴。...
分类:其他好文   时间:2015-07-07 16:53:37    阅读次数:111
GIT有时候.gitignore不起作用的问题
现象:明明已经在.gitignore文件了加了/bin/,更新提交的时候还是显示bin目录下文件。 原因:可能是已经提交了,有记录了,所以不起作用。 解决:先删除bin目录再提交,等再次生成的时候这个目录已经有减号了,起了作用。...
分类:其他好文   时间:2015-07-07 16:54:31    阅读次数:106
使用Irrlicht构建游戏主角
所谓游戏主角就是第三视角看到的在屏幕中间附近跑来跑去,然后周围景物随之变换的节点。实现的思路很简单,分为以下三步 1. 获取键盘输入 2. 移动主角,并且在需要的时候更改动画 3. 移动摄像机...
分类:其他好文   时间:2015-07-07 16:54:17    阅读次数:142
推箱子游戏
大一寒假 1.写代码时我犯了一个很大的错误(不然早就搞定了)把&&与||混淆了;大忌啊 2.这里实现了数字化编码 3.上72 下80 左75 右77 4.特殊图形可以到QQ拼音符号里获取 #include #include #include #define x 1//人的位置 #define y 5 #define n 10//地图大小 int cont; void ...
分类:其他好文   时间:2015-07-07 16:55:12    阅读次数:78
日历日历日历
原版始于2012.1.10 #include "stdio.h" #include "conio.h" #include "time.h" #include "stdlib.h" void diao(int year,int month);//第一个被调用函数,只是获得space; int leap(int year);//是闰年加1 int jjmonth(int year,int mont...
分类:其他好文   时间:2015-07-07 16:55:30    阅读次数:111
打星星游戏
//大一暑假 #include #include #include #define n 10//地图大小 int m=1; int g=5; //////////////////////////人是1,墙是9,星星是8/10,空位是0,光是2; int count=0; int point='w'; void move(int a[][10],int i,int j...
分类:其他好文   时间:2015-07-07 16:53:40    阅读次数:126
算术表达式
#include #include #include #include #define MAXzhansize 30 char stack[MAXzhansize];// char deleted(int *top); void add(int *top,char item); //////////////////////////////////////////////////////...
分类:其他好文   时间:2015-07-07 16:53:12    阅读次数:103
如何在Label中显示图片
UIImage *image = [UIImage imageNamed:@"321.jpg"];   // 1> 生成文本附件 NSTextAttachment *textAttach = [[NSTextAttachment alloc] init]; textAttach.image = image;   // 2> 使用文本附件创...
分类:其他好文   时间:2015-07-07 16:52:51    阅读次数:119
uva 10934 装满水的气球
题意和思路见: http://blog.csdn.net/shuangde800/article/details/11273123 我的想法: 首先问题转化一下 将问题转化成:定义f[i][j] 表示给i个水球和j次实验机会,最高能够测试到几层~ 则会有如下的转移方程: f[i][j] = f[i][j-1] + f[i-1][j-1] + 1; 后一部分是说选在第k层试第一次,...
分类:其他好文   时间:2015-07-07 16:53:58    阅读次数:120
LeetCode89:Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray...
分类:其他好文   时间:2015-07-07 16:53:37    阅读次数:108
AIX Study之--AIX用户资源访问限制配置
AIX Study之--用户访问系统资源限制配置 Aix 用户使用的系统资源限制包括两个概念 --- 硬限制(hard limits) 和软限制(soft limits)。hard limits自Aix 4.1版本开始引入。hard limits 应由Aix系统管理员设置,只有security组的成员可以将此值增大,用户本身可以减小此限定值,但是其更改将随着该用户从系统退出而失效。...
分类:其他好文   时间:2015-07-07 16:52:47    阅读次数:125
斯坦福《机器学习》Lesson4感想--1、Logistic回归中的牛顿方法
在上一篇中提到的Logistic回归是利用最大似然概率的思想和梯度上升算法确定θ,从而确定f(θ)。本篇将介绍另一种求解最大似然概率?(θ)的方法,即牛顿迭代法。 在牛顿迭代法中,假设一个函数是,求解θ值使得f(θ)=0。在图1中可知, 图1 选择一个点,对应函数值为,并将对应的切线与x轴相交的点记为,所以 ,依此类推可知牛顿迭代规律。  为了求得最大似然概率?(θ),让,...
分类:其他好文   时间:2015-07-07 16:52:26    阅读次数:249
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!