上一页 1 ··· 72 73 74 75 76
摘要: 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 @ 2017-10-19 14:12 bernieloveslife 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2017-10-19 12:24 bernieloveslife 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2017-10-19 11:14 bernieloveslife 阅读(146) 评论(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 @ 2017-10-19 10:55 bernieloveslife 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: Cr 阅读全文
posted @ 2017-09-30 19:06 bernieloveslife 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2017-09-29 12:40 bernieloveslife 阅读(122) 评论(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 @ 2017-09-29 10:58 bernieloveslife 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. to Trivia: This problem was inspired by this original tweet by Max Howell: Python Solution: 阅读全文
posted @ 2017-09-29 10:44 bernieloveslife 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2017-09-29 10:23 bernieloveslife 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2017-09-29 10:09 bernieloveslife 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 72 73 74 75 76