摘要:
Problem : Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note: You may assume the string con 阅读全文
posted @ 2020-04-01 23:41
littledy
阅读(86)
评论(0)
推荐(0)
摘要:
Problem : Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less 阅读全文
posted @ 2020-04-01 22:36
littledy
阅读(108)
评论(0)
推荐(0)
摘要:
Problem : 思路 : Solution (C++) : 性能 : Runtime: 60 ms Memory Usage: 8.6 MB 思路 : Solution (C++) : 性能 : Runtime: ms Memory Usage: MB 阅读全文
posted @ 2020-04-01 22:15
littledy
阅读(74)
评论(0)
推荐(0)
摘要:
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)