上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 46 下一页
  2017年7月27日
摘要: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n 阅读全文
posted @ 2017-07-27 17:04 Beserious 阅读(141) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-07-27 12:45 Beserious 阅读(184) 评论(0) 推荐(0) 编辑
  2017年7月26日
摘要: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文
posted @ 2017-07-26 13:28 Beserious 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2017-07-26 12:14 Beserious 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 从2 阅读全文
posted @ 2017-07-26 08:07 Beserious 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 其实类似26进制数 阅读全文
posted @ 2017-07-26 07:58 Beserious 阅读(130) 评论(0) 推荐(0) 编辑
  2017年7月25日
摘要: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Not 阅读全文
posted @ 2017-07-25 18:35 Beserious 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 求n得阶层,末尾0的个数 老问题了,统计2,5的 阅读全文
posted @ 2017-07-25 15:21 Beserious 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to get the second highest salary from the Employee table. For example, given the above Employee table, the query should return 200 a 阅读全文
posted @ 2017-07-25 12:28 Beserious 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2017-07-25 11:54 Beserious 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 46 下一页