- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 LeetCode4.Median of Two Sorted Arrays二分查找法
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Subscribe to see whic
2015-12-31 16:22:57 633
原创 4年前的一道面试题
整理电脑,突然翻出一道4年前的面试题,那是大四上学期,也就是寒冬时节,地上还有积雪。在学校图书馆举行校招,是省内的一些IT公司。现在回想看来,那时的我真是一无所知,要毕业了才开始看C语言的书,我一般把2010年9月,也就是大三上学期,看作是自己学编程的开始时间。我当时能做出此题,是因为那时正好看完《C Primer Plus》中文版。题目是这样的:现在有54张扑克牌(包含四个花色和大小王)
2015-12-27 22:23:57 612
原创 LeetCode318——Maximum Product of Word Lengths,从time limit exceeded到accept
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case le
2015-12-27 21:52:29 898
原创 LeetCode1——Two Sum我的解法
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe
2015-12-18 17:45:37 580
原创 LeetCode306——Additive Number且看我是如何解决的
Additive number is a string whose digits can form additive sequence.A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number in the
2015-12-05 22:23:38 2178
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人