上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 98 下一页
摘要: We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take turns erasing exactly one number from the chalkboard, 阅读全文
posted @ 2018-11-17 16:36 Veritas_des_Liberty 阅读(240) 评论(0) 推荐(0)
摘要: There are two types of soup: type A and type B. Initially we have N ml of each type of soup. There are four kinds of operations: When we serve some so 阅读全文
posted @ 2018-11-17 15:49 Veritas_des_Liberty 阅读(250) 评论(0) 推荐(0)
摘要: Sometimes people repeat letters to represent extra feeling, such as "hello" -> "heeellooo", "hi" -> "hiiii". Here, we have groups, of adjacent letters 阅读全文
posted @ 2018-11-17 12:09 Veritas_des_Liberty 阅读(211) 评论(0) 推荐(0)
摘要: A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com 阅读全文
posted @ 2018-11-17 12:04 Veritas_des_Liberty 阅读(169) 评论(0) 推荐(0)
摘要: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Example 2: Example 3: Approach #1: c++. 阅读全文
posted @ 2018-11-16 22:36 Veritas_des_Liberty 阅读(253) 评论(0) 推荐(0)
摘要: 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 and j equals 阅读全文
posted @ 2018-11-16 22:25 Veritas_des_Liberty 阅读(281) 评论(0) 推荐(0)
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2018-11-16 19:09 Veritas_des_Liberty 阅读(256) 评论(0) 推荐(0)
摘要: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This 阅读全文
posted @ 2018-11-16 15:49 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0)
摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2018-11-16 15:03 Veritas_des_Liberty 阅读(181) 评论(0) 推荐(0)
摘要: Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. Example: Approach #1: C++. 阅读全文
posted @ 2018-11-15 22:33 Veritas_des_Liberty 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 98 下一页