Bloomberg面试题
pablojie
这个作者很懒,什么都没留下…
展开
-
[LeetCode]2. Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2016-10-19 11:04:45 · 208 阅读 · 0 评论 -
[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. Example: Given nums =原创 2016-10-07 03:39:25 · 293 阅读 · 0 评论 -
[LeetCode]230. Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements. Follow up: What if t原创 2016-10-08 03:52:09 · 244 阅读 · 0 评论 -
[LeetCode]170. Two Sum III - Data structure design
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. find - Find if there exists any pair of numbers w原创 2016-10-08 11:10:43 · 367 阅读 · 0 评论