赵乐ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  103 随笔 :: 0 文章 :: 41 评论 :: 96617 阅读

06 2013 档案

摘要:mysqldb需要安装64位的(http://ishare.iask.sina.com.cn/f/21839771.html),否则出现import _mysql ImportError: DLL load failed: %1 不是有效的 Win32 应用程序ImportError: this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, 2, 2, 'final', 0) 阅读全文
posted @ 2013-06-28 13:12 赵乐ACM 阅读(887) 评论(0) 推荐(0) 编辑

摘要: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 linked list.Input:(2 -> 4 -> 3) + (5 -> 6 -> 4)Output:7 -> 0 -> 8解题思路:很简单,主要考察链表的操作,对链 阅读全文
posted @ 2013-06-26 11:48 赵乐ACM 阅读(3038) 评论(1) 推荐(1) 编辑

摘要:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1.解 阅读全文
posted @ 2013-06-25 22:08 赵乐ACM 阅读(13331) 评论(3) 推荐(2) 编辑

摘要:There are two sorted arrays A and B 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)).解题思路:该题可以解决所有求有序数组A和B有序合并之后第k小的数!该题的重要结论:如果A[k/2-1] n) return findKth(B, n, A, m, k); if (m == 0) return B[k... 阅读全文
posted @ 2013-06-24 21:02 赵乐ACM 阅读(9890) 评论(0) 推荐(0) 编辑

摘要: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, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are 阅读全文
posted @ 2013-06-24 17:52 赵乐ACM 阅读(11304) 评论(6) 推荐(1) 编辑

点击右上角即可分享
微信分享提示