码迷,mamicode.com
首页 >  
搜索关键字:array element cannot    ( 44549个结果
Search Insert Position (LeetCode)
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-07-16 23:16:32    阅读次数:156
JS简单加密
//简单的jS加密解密//code为对应的字符串,h为(2,8,10,16)就是要转成的几进制function en(code, h) { var monyer = new Array();var i,s; for(i=0;i<code.length;i++) monyer...
分类:Web程序   时间:2014-07-16 23:13:25    阅读次数:488
根据地图上的两个点各自的x,y坐标,计算出2点之间的直线距离。显示为公里、米
/** * calc_map_distance() , 根据地图上的两个点各自的x,y坐标,计算出2点之间的直线距离 * @param array $point_1 第1个点的x,y坐标 array( 101 , 202 ) * @param array $po...
分类:其他好文   时间:2014-07-16 23:11:28    阅读次数:166
Regular Expression Matching
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:其他好文   时间:2014-07-12 13:17:10    阅读次数:248
leetcode - Remove Duplicates from Sorted List
题目:Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2...
分类:其他好文   时间:2014-07-10 14:29:45    阅读次数:259
ORA-02095: specified initialization parameter cannot be modified
输入命令:alter system set utl_file_dir='/home/oracle/logmnr' scope=spfile;报错:出错原因:没有用spfile文件启动数据库解决办法:以spfile文件启动数据库。1:进$ORACLE_HOME/dbs路径,看是否有该spfile文件2...
分类:其他好文   时间:2014-07-10 14:17:21    阅读次数:466
Array.Copy
var bt = new byte[] { 0x03, 0x00, 0x01, 0xD9, 0x23 }; var result = new byte[] { 0x01, 0x00, 0x03, 0x00, 0xFC }; var tmp = ...
分类:其他好文   时间:2014-07-10 12:41:16    阅读次数:158
zabbix discovery
preface(见面礼):仅扫tcp端口:netstat -tnlp|egrep -i "$1"udp+tcpnetstat -tunlp|egrep -i "$1"(服务器端口扫描,数据保存到shell array) 1 #!/bin/bash 2 portarray=(`netstat -tn....
分类:其他好文   时间:2014-06-29 18:19:45    阅读次数:253
Leetcode-Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:其他好文   时间:2014-06-28 08:17:11    阅读次数:305
scala学习(二)
接着上次的学习,今天学习scala的下面内容咯~~1·使用集(set)和映射(map)学习过java的童鞋们,看见这两个肯定很开心咯,因为很眼熟哦。scala的集合,分为可变类型和不可变类型。array--可变;list保持不变那么set和map呢,他们通过类继承的差别控制可变和不可变~~先看个set..
分类:其他好文   时间:2014-06-28 00:41:02    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!