上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: Problem : Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between i an 阅读全文
posted @ 2020-04-01 17:08 littledy 阅读(113) 评论(0) 推荐(0)
摘要: Problem : Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7, 阅读全文
posted @ 2020-04-01 16:13 littledy 阅读(87) 评论(0) 推荐(0)
摘要: Problem : The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and 阅读全文
posted @ 2020-04-01 01:01 littledy 阅读(84) 评论(0) 推荐(0)
摘要: Problem : Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and 阅读全文
posted @ 2020-04-01 00:29 littledy 阅读(83) 评论(0) 推荐(0)
摘要: Problem : Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of 阅读全文
posted @ 2020-04-01 00:19 littledy 阅读(106) 评论(0) 推荐(0)
摘要: Problem : Given two arrays, write a function to compute their intersection. Example 1: Example 2: Note: Each element in the result must be unique. The 阅读全文
posted @ 2020-03-31 22:47 littledy 阅读(89) 评论(0) 推荐(0)
摘要: Problem : Given a string, find the first non repeating character in it and return it's index. If it doesn't exist, return 1. Examples: Note: You may a 阅读全文
posted @ 2020-03-31 00:04 littledy 阅读(95) 评论(0) 推荐(0)
摘要: Problem : Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which mak 阅读全文
posted @ 2020-03-30 23:33 littledy 阅读(79) 评论(0) 推荐(0)
摘要: Problem : Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). Example 1: Exam 阅读全文
posted @ 2020-03-30 23:21 littledy 阅读(80) 评论(0) 推荐(0)
摘要: Problem : Given a column title as appear in an Excel sheet, return its corresponding column number. For example: Example 1: Example 2: Example 3: 思路 : 阅读全文
posted @ 2020-03-30 23:10 littledy 阅读(97) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页