上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2018年12月4日

摘要: 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 elements. Your t 阅读全文
posted @ 2018-12-04 14:01 chiyeung 阅读(141) 评论(0) 推荐(0) 编辑
摘要: For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i 阅读全文
posted @ 2018-12-04 13:28 chiyeung 阅读(159) 评论(0) 推荐(0) 编辑

2018年12月3日

摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the 阅读全文
posted @ 2018-12-03 15:10 chiyeung 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2018-12-03 14:52 chiyeung 阅读(85) 评论(0) 推荐(0) 编辑

2018年12月2日

摘要: Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation is repres 阅读全文
posted @ 2018-12-02 13:41 chiyeung 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Find the sum of all left leaves in a given binary tree. Example: 阅读全文
posted @ 2018-12-02 13:05 chiyeung 阅读(168) 评论(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-12-02 12:30 chiyeung 阅读(208) 评论(0) 推荐(0) 编辑

2018年12月1日

摘要: 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 incrementing n  阅读全文
posted @ 2018-12-01 10:09 chiyeung 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文
posted @ 2018-12-01 09:53 chiyeung 阅读(186) 评论(0) 推荐(0) 编辑
摘要: We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N 阅读全文
posted @ 2018-12-01 09:35 chiyeung 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

导航