keys_.keys(object)
Retrieve all the names of the object's properties.
_.keys({one: 1, two: 2, three: 3});
=> ["one", "two", "three"]
values_.values(object)
Return all of the values of the obje...
题意:
一个机器人走迷宫 每一秒要么转向要么前进 问 最少时间的情况下有几种方案
思路:
记忆化搜索即可 简单bfs
代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using names...
分类:
其他好文 时间:
2014-10-25 21:29:23
阅读次数:
236
merge函数的声明: merge(x,?y,?by?=?intersect(names(x),?names(y)),
??????by.x?=?by,?by.y?=?by,?all?=?FALSE,?all.x?=?all,?all.y?=?all,
??????sort?=?TRUE,?suf...
分类:
编程语言 时间:
2014-10-24 19:17:21
阅读次数:
404
创建一个Hashnames = Hash.newnames["chn"] = "LiuLei"names["eng"] = "Voctrals"names["jpn"] = "ryourayi"names = {"chn" => "Liulei", "eng" => "Voctrals", "jpn...
分类:
其他好文 时间:
2014-10-24 18:14:59
阅读次数:
290
题目链接:点击打开链接
题意:就是一个按位运算的一个函数,问最少经过多少步运算可以得到给定数;
思路:不是我投机取巧想打表,是特么这题只能打表。。。打表思想用可以得到的数的集合表示状态bfs;最后有一个需要11步的需要打将近1h,除去这一个十分钟就够了。
cpp:
#include
#include
#include
#include
#include
using names...
分类:
其他好文 时间:
2014-10-23 00:08:51
阅读次数:
241
1 barplot(data$v2,names.arg=data$v1),names太多会导致显示不全,可以加上las=2,使names旋转90度显示2 names太长,显示不全,利用par(mar=c(a,b,c,d))改变左图边界宽度,abcd依次是下,左,上,右边界3 高丰度的数量级太大...
分类:
其他好文 时间:
2014-10-21 15:20:47
阅读次数:
172
TempStr = "driver={MySQL ODBC 3.51 Driver};database="&strDB&";server="&strServer&";uid="&strUid&";password="&strPwd&";Stmt=Set Names GBK" 当然需要再服务器上安装....
分类:
数据库 时间:
2014-10-20 20:59:56
阅读次数:
188
import com.changxin.util.StringUtil;fieldNames = getFiledName(inpatientDetail); names = StringUtil.arrayToCommaDelimitedString(fieldNames);
分类:
编程语言 时间:
2014-10-18 23:58:08
阅读次数:
186
修改文件为/etc/mysql/my.cnf[client]default-character-set = utf8 (ps:client的设置没变)[mysqld]lower_case_table_names = 1 (不区分大小写)character_set_server = utf8 (ps:...
分类:
数据库 时间:
2014-10-18 11:08:57
阅读次数:
222
php操作xml并将其插入数据库
<?php
header('content-type:text/html;charset=utf-8');
mysql_connect('localhost', 'root', '');
mysql_select_db('test');
mysql_query('SET names utf8');
$xml_array=simplexml_load_file('suggest.xml'); //将XML中的数据,读取到数组对象中
foreach($xml_array a...
分类:
数据库 时间:
2014-10-18 09:53:04
阅读次数:
226