2019年5月9日

摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Idea 1. Dynamic pr 阅读全文
posted @ 2019-05-09 10:17 一直走在路上 阅读(92) 评论(0) 推荐(0)
摘要: 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 @ 2019-05-09 09:53 一直走在路上 阅读(97) 评论(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 @ 2019-05-09 08:25 一直走在路上 阅读(95) 评论(0) 推荐(0)
摘要: Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of 阅读全文
posted @ 2019-05-09 05:18 一直走在路上 阅读(111) 评论(0) 推荐(0)
摘要: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2019-05-09 04:54 一直走在路上 阅读(129) 评论(0) 推荐(0)
摘要: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as 阅读全文
posted @ 2019-05-09 02:28 一直走在路上 阅读(86) 评论(0) 推荐(0)
摘要: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the m 阅读全文
posted @ 2019-05-09 01:38 一直走在路上 阅读(151) 评论(0) 推荐(0)

导航