上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页
摘要: Problem : Given a non empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If t 阅读全文
posted @ 2020-04-18 20:41 littledy 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Problem : Give a string s, count the number of non empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 阅读全文
posted @ 2020-04-18 20:19 littledy 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Problem : Given a non empty array of non negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elemen 阅读全文
posted @ 2020-04-18 17:53 littledy 阅读(79) 评论(0) 推荐(0) 编辑
摘要: Problem : On an NxN chessboard, a knight starts at the r th row and c th column and attempts to make exactly K moves. The rows and columns are 0 index 阅读全文
posted @ 2020-04-18 17:14 littledy 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Problem : There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0 阅读全文
posted @ 2020-04-18 13:26 littledy 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Problem : Given a non negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you 阅读全文
posted @ 2020-04-18 13:17 littledy 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Problem : Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Note: Le 阅读全文
posted @ 2020-04-18 12:20 littledy 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Problem : You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: 1. Integer (one round's 阅读全文
posted @ 2020-04-18 11:58 littledy 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Problem : Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: 1. Copy All: You can 阅读全文
posted @ 2020-04-18 11:00 littledy 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Problem : You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can 阅读全文
posted @ 2020-04-18 08:57 littledy 阅读(67) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页