Implement an iterator to flatten a 2d vector. For example, Given 2d vector = By calling next repeatedly until hasNext returns false, the order of elem ...
分类:
其他好文 时间:
2016-08-23 14:35:20
阅读次数:
136
最近更新了一下Android Studio,再导入新项目之后出现Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”的错误,如下图所示:
经过检查后发现这里是丢失了android studio的gradle目录,下面总结一下我的解决方案:
1、设置:settings->Build,Execut...
分类:
移动开发 时间:
2016-08-22 23:31:54
阅读次数:
344
Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 在这里介绍python中字符串翻转的几种方法: 1.步 ...
分类:
其他好文 时间:
2016-08-21 22:32:04
阅读次数:
162
今天在我执行自定义mysql函数的SQL时发生了错误,SQL如下: /** 自定义mysql函数 getChildList */delimiter //CREATE FUNCTION `pengwifi_wifi`.`getChildList`(rootId INT)RETURNS varchar( ...
分类:
数据库 时间:
2016-08-19 11:17:42
阅读次数:
205
Java中的ThreadLocal 可以看做以线程标识为key的Map,在多线程开发中使用非常方便。 使用示例 运行结果 源码解析 1 public ThreadLocal() { 2 } 3 4 /** 5 * Returns the value in the current thread's c ...
分类:
其他好文 时间:
2016-08-18 23:02:21
阅读次数:
178
Reverse digits of an integer. Returns 0 when the reversed integer overflows (signed 32-bit integer). Reverse digits of an integer. Returns 0 when the ...
分类:
其他好文 时间:
2016-08-17 01:22:13
阅读次数:
386
/** * 获取浏览滚动出去的距离 * @returns {{scrollY: (Number|number), scrollX: (Number|number)}} */function scroll(){ return{ scrollY:window.scrollY||document.body ...
分类:
其他好文 时间:
2016-08-16 23:38:26
阅读次数:
113
题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. (Easy) 分析: 不用考虑KMP啥的 ...
分类:
其他好文 时间:
2016-08-16 21:59:00
阅读次数:
113
Implement an iterator to flatten a 2d vector. For example,Given 2d vector = By calling next repeatedly until hasNext returns false, the order of eleme ...
分类:
其他好文 时间:
2016-08-16 08:13:03
阅读次数:
217
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2016-08-16 07:02:12
阅读次数:
160