摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except  阅读全文
posted @ 2016-07-20 10:07 Roger's 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - 阅读全文
posted @ 2016-07-20 09:29 Roger's 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i 阅读全文
posted @ 2016-07-15 17:45 Roger's 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2016-07-15 17:05 Roger's 阅读(132) 评论(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 and r 阅读全文
posted @ 2016-07-15 13:23 Roger's 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1.For example, public String numbe 阅读全文
posted @ 2016-07-14 17:42 Roger's 阅读(270) 评论(0) 推荐(0) 编辑
摘要: JavaScript 中有两个特殊数据类型:undefined 和 null,先看看 undefined 的判断,欢迎各位同仁交流一番:第一次碰见undefined的时候,我用的是java那一套,我是这样处理的 if (obj== undefined){ /*逻辑*/ } 事实说明我是自作聪明了,查 阅读全文
posted @ 2016-07-14 15:45 Roger's 阅读(35239) 评论(1) 推荐(0) 编辑
摘要: 这个问题是最近工作中遇到的,希望看到的同仁可以多发表下见解,互相学习一下, 原本是要实现根据一个list里面的挂号记录id查询收费的项目,临时加的一个小变动,于是乎,我想着直接jdbctempate将in后面的参数拼进去吧别搞一个服务了,整接口那么繁琐,而后证明我毕竟还是too young ,问了下 阅读全文
posted @ 2016-07-14 15:15 Roger's 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 开发时候频繁的操作数据库有可能导致所表,这个走了几遍debug,发现碰见jdbc操作无端走不下去,怎么办呢,从某前辈那寻得二条sql,分享之,以下: 解锁;1,查询SELECT l.session_id sid, s.serial#, l.locked_mode,l.oracle_username, 阅读全文
posted @ 2016-07-14 14:54 Roger's 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2016-07-14 14:39 Roger's 阅读(157) 评论(0) 推荐(0) 编辑