摘要:
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)