上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: Problem : Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: `` Input: 218 Output: false c bool 阅读全文
posted @ 2020-04-05 23:37 littledy 阅读(148) 评论(0) 推荐(0)
摘要: Problem : Count the number of prime numbers less than a non negative number, n. Example: 思路 : Solution (C++) : 性能 : Runtime: 208 ms Memory Usage: 6.6 阅读全文
posted @ 2020-04-05 23:17 littledy 阅读(111) 评论(0) 推荐(0)
摘要: Problem : Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All 阅读全文
posted @ 2020-04-05 22:56 littledy 阅读(128) 评论(0) 推荐(0)
摘要: Problem : Remove all elements from a linked list of integers that have value val. Example: 思路 : Solution (C++) : 性能 : Runtime: 44 ms Memory Usage: 10. 阅读全文
posted @ 2020-04-05 13:05 littledy 阅读(131) 评论(0) 推荐(0)
摘要: Problem : Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Example 2: Note: The result may be ve 阅读全文
posted @ 2020-04-04 22:09 littledy 阅读(100) 评论(0) 推荐(0)
摘要: Problem : Given an array A of non negative integers, half of the integers in A are odd, and half of the integers are even. Sort the array so that when 阅读全文
posted @ 2020-04-02 20:05 littledy 阅读(119) 评论(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-04-02 00:11 littledy 阅读(64) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页