摘要: 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 阅读(271) 评论(0) 推荐(0) 编辑
摘要: JavaScript 中有两个特殊数据类型:undefined 和 null,先看看 undefined 的判断,欢迎各位同仁交流一番:第一次碰见undefined的时候,我用的是java那一套,我是这样处理的 if (obj== undefined){ /*逻辑*/ } 事实说明我是自作聪明了,查 阅读全文
posted @ 2016-07-14 15:45 Roger's 阅读(35279) 评论(1) 推荐(0) 编辑
摘要: 这个问题是最近工作中遇到的,希望看到的同仁可以多发表下见解,互相学习一下, 原本是要实现根据一个list里面的挂号记录id查询收费的项目,临时加的一个小变动,于是乎,我想着直接jdbctempate将in后面的参数拼进去吧别搞一个服务了,整接口那么繁琐,而后证明我毕竟还是too young ,问了下 阅读全文
posted @ 2016-07-14 15:15 Roger's 阅读(1455) 评论(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 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 题目:给你丫一字符串,你给我倒着写。。。。 思路:我一开 阅读全文
posted @ 2016-07-14 14:20 Roger's 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
posted @ 2016-07-14 14:08 Roger's 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. to /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(i 阅读全文
posted @ 2016-07-14 13:54 Roger's 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2016-07-14 13:40 Roger's 阅读(95) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2016-07-14 13:34 Roger's 阅读(184) 评论(0) 推荐(0) 编辑