摘要: Question: 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 阅读全文
posted @ 2016-06-24 00:08 青山村小码农 阅读(107) 评论(0) 推荐(0) 编辑
摘要: dao层示例如下: mybatis的xml查询语句如下: 假设数据库中,userid 为 integer,username为varhcar2(32). 那么,如果我在service层中调用 这个时候,就会出现类型转换错误。 在springJdbc中,如果返回值是Map或者List<Map 的话 阅读全文
posted @ 2016-06-22 23:22 青山村小码农 阅读(977) 评论(0) 推荐(0) 编辑
摘要: Question: Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the proces 阅读全文
posted @ 2016-06-17 00:06 青山村小码农 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Question: 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 阅读全文
posted @ 2016-06-16 00:18 青山村小码农 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Question: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". Code: Here is Jav 阅读全文
posted @ 2016-06-14 23:46 青山村小码农 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou 阅读全文
posted @ 2016-06-06 00:20 青山村小码农 阅读(119) 评论(0) 推荐(0) 编辑