${base} EL后台传过来,再从jsp页面传到独立的js文件里 var getScriptArg=function(key){var scripts=document.getElementsByTagName("script"),script=scripts[scripts.length-1],src=script.src;return(src.ma...
分类:
Web程序 时间:
2015-08-01 15:55:19
阅读次数:
235
Given two strings?s?and?t, write a function to determine if?t?is an anagram of?s. For example, s?= "anagram",?t?= "nagaram", return true. s?= "rat",?t?= "car", return false. Note: You ...
分类:
其他好文 时间:
2015-08-01 15:53:07
阅读次数:
173
class Solution {public: int climbStairs(int n) { if(n==1) return 1; if(n==2) return 2; if(n v; v.push_back(1); ...
分类:
其他好文 时间:
2015-08-01 15:35:39
阅读次数:
111
1、 1 package learn; 2 /* 3 * |--TreeSet 4 * 可以对Set集合排序 5 * 底层数据结构是二叉树 6 * 保证数据唯一性的依据:compareTo方法return 0;原序ret...
分类:
编程语言 时间:
2015-08-01 15:35:01
阅读次数:
112
给定一个等概率随机产生1~M的随机函数rand1ToM如下: public int rand1ToM(int m) { return (int) (Math.random() * m) + 1; } 除此之外不能使用任何额外的随机机制。有两个输入参数分别为m和n,请用rand1ToM(m)实现等概率...
分类:
其他好文 时间:
2015-08-01 14:09:43
阅读次数:
150
087 Scramble String这道题是divide and conquer。 使用sorted可以快速判断 要不然会超时class Solution: # @param {string} s1 # @param {string} s2 # @return {boolean}...
分类:
其他好文 时间:
2015-08-01 12:52:49
阅读次数:
146
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目:给一组字符串,返回所有满足Anagrams(回文构词法)的字符串;A...
分类:
其他好文 时间:
2015-08-01 12:42:33
阅读次数:
97
1 public static ListNode removeElement(ListNode head, int val) { 2 if (head == null) return null; 3 4 ListNode dummy = new L...
分类:
其他好文 时间:
2015-08-01 11:19:38
阅读次数:
98
url = $url; } public function get_info() { return array('url'=>$this->url,'input'=>$this->input,'curl_error'=>$this->curl_error,'curl_info'=>$this->c....
分类:
Web程序 时间:
2015-08-01 09:59:04
阅读次数:
127
mac系统:?(command)、?(option)、?(shift)、?(caps lock)、?(control)、?(return)、?(enter)? shift+option+k ¸? shifu+option+i文件剪切:command+c->到目标内容后->option+command...
分类:
系统相关 时间:
2015-08-01 07:39:27
阅读次数:
183