上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页
摘要: 题目: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementin 阅读全文
posted @ 2017-03-27 07:38 panini 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, 阅读全文
posted @ 2017-03-26 11:58 panini 阅读(133) 评论(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 iand j equ 阅读全文
posted @ 2017-03-26 10:36 panini 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 题目: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total nu 阅读全文
posted @ 2017-03-26 04:25 panini 阅读(154) 评论(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 阅读全文
posted @ 2017-03-26 04:08 panini 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not ne 阅读全文
posted @ 2017-03-26 01:37 panini 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 题目: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the str 阅读全文
posted @ 2017-03-26 00:46 panini 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column rea 阅读全文
posted @ 2017-03-26 00:22 panini 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 链接:https://leetcode.com/problems/add-s 阅读全文
posted @ 2017-03-25 06:06 panini 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time comp 阅读全文
posted @ 2017-03-25 02:49 panini 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页