- 博客(6)
- 收藏
- 关注
原创 【LeetCode】 7. Reverse Integer
【LeetCode】 7. Reverse IntegerReverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321Note:The input is assumed to be a 32-bit signed integer. Your function should return
2017-08-24 22:37:24 245
原创 【LeetCode】21. Merge Two Sorted Lists
【LeetCode】21. Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
2017-08-24 22:30:11 285
原创 【LeetCode】20. Valid Parentheses
Given a string containing just the characters '(', ')','{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid b
2017-08-21 10:23:38 233
转载 HashMap和Hashtable的区别
HashMap和Hashtable的比较是Java面试中的常见问题,用来考验程序员是否能够正确使用集合类以及是否可以随机应变使用多种思路解决问题。HashMap的工作原理、ArrayList与Vector的比较以及这个问题是有关Java 集合框架的最经典的问题。
2017-08-18 11:15:41 235
原创 【LeetCode】1. Two Sum
【LeetCode】1. Two Sum 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 would have exactly one solution, and you may not use thesame
2017-08-17 09:45:38 241
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人