上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 77 下一页
摘要: [抄题]: Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You nee 阅读全文
posted @ 2018-04-26 15:45 苗妙苗 阅读(149) 评论(0) 推荐(0)
摘要: [抄题]: We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an intege 阅读全文
posted @ 2018-04-26 10:58 苗妙苗 阅读(142) 评论(0) 推荐(0)
摘要: [抄题]: he set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to anot 阅读全文
posted @ 2018-04-25 21:59 苗妙苗 阅读(159) 评论(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 阅读全文
posted @ 2018-04-25 21:06 苗妙苗 阅读(105) 评论(0) 推荐(0)
摘要: [抄题]: Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab" -> True, "carerac" -> True. 阅读全文
posted @ 2018-04-25 16:32 苗妙苗 阅读(81) 评论(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  阅读全文
posted @ 2018-04-25 15:47 苗妙苗 阅读(133) 评论(0) 推荐(0)
摘要: [抄题]: You are given a data structure of employee information, which includes the employee's unique id, his importance value and his directsubordinates 阅读全文
posted @ 2018-04-24 21:49 苗妙苗 阅读(135) 评论(0) 推荐(0)
摘要: [抄题]: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy 阅读全文
posted @ 2018-04-24 17:07 苗妙苗 阅读(155) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear 阅读全文
posted @ 2018-04-24 16:35 苗妙苗 阅读(430) 评论(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 lett 阅读全文
posted @ 2018-04-24 16:08 苗妙苗 阅读(222) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 77 下一页