摘要: 很久没有写了。。最近看书的笔记都记在有道云上面。。框架的使用觉得还是有必要写一下 1、下载 官网:https://www.apache.org/dyn/closer.cgi 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/ 在官网 阅读全文
posted @ 2018-03-20 16:47 l.shane 阅读(560) 评论(0) 推荐(0) 编辑
摘要: select2的组件bug 解决方案: 在bootstrap.js中修改: Modal.prototype.enforceFocus = function () { $(document) .off('focusin.bs.modal') // guard against infinite focu 阅读全文
posted @ 2017-11-16 09:54 l.shane 阅读(941) 评论(1) 推荐(1) 编辑
摘要: 原题 Given a string, determine if a permutation of the string could form a palindrome. For example, "code" False, "aab" True, "carerac" True. 解析 判断是否可以组 阅读全文
posted @ 2017-07-26 16:50 l.shane 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 阅读全文
posted @ 2017-07-26 10:14 l.shane 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 原题 Given an unsorted array nums, reorder it in place such that nums[0] = nums[2] nums[i 1]))) { int temp = nums[i]; nums[i] = nums[i 1]; nums[i 1] = t 阅读全文
posted @ 2017-07-26 10:12 l.shane 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example: Give 阅读全文
posted @ 2017-07-26 10:11 l.shane 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation an 阅读全文
posted @ 2017-07-26 10:09 l.shane 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 原题 Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may 阅读全文
posted @ 2017-07-26 10:06 l.shane 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 原题 During the NBA playoffs, we always arrange the rather strong team to play with the rather weak team, like make the rank 1 team play with the rank n 阅读全文
posted @ 2017-07-26 09:40 l.shane 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 原题 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for num 阅读全文
posted @ 2017-07-26 09:31 l.shane 阅读(153) 评论(0) 推荐(0) 编辑