- 博客(6)
- 收藏
- 关注
原创 java语法糖
在《深入理解Java虚拟机》的语法糖这一章节中,看到了一个关于Java中自动装箱与拆箱的机制。书中有一个例子如下:public static void main(String[] args){ Integer a = 1; Integer b = 2; Integer c = 3; Integer d = 3;...
2018-11-16 10:34:49 122
原创 347. Top K Frequent Elements
题目连接347. Top K Frequent Elements题目描述Given a non-empty array of integers, return the k most frequent elements.Example 1:Input: nums = [1,1,1,2,2,3], k = 2Output: [1,2]Example 2:Input: nums = ...
2018-11-14 14:44:25 182
原创 416. Partition Equal Subset Sum
题目链接416. Partition Equal Subset Sum题目描述Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets...
2018-11-12 19:25:10 233
原创 940. Distinct Subsequences II
题目链接940. Distinct Subsequences II题目描述Given a string S, count the number of distinct, non-empty subsequences of S .Since the result may be large, return the answer modulo 10^9 + 7.Example 1:Inpu...
2018-11-11 14:57:29 288
原创 939. Minimum Area Rectangle
题目链接939. Minimum Area Rectangle题目描述Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes.If there isn’t...
2018-11-11 13:53:42 814 2
原创 115. Distinct Subsequences
题目链接 Distinct Subsequences题目描述Given a string S and a string T, count the number of distinct subsequences of S which equals T.A subsequence of a string is a new string which is formed from the ori...
2018-11-09 22:05:23 282
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人