TizzyT's Blog

即使是拖后腿的,拼死努力的话,也是可以超越精英的。


  • Home

  • Archives

  • About

  • Tags

  • Categories

  • Schedule

  • Sitemap

  • Commonweal 404

Target Sum

Posted on 2019-10-14 |
问题描述(难度中等-494)You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For each integer, you sho ...
Read more »

Comparator和Comparable接口

Posted on 2019-10-12 |
通常我们自定义的一些类需要进行比较,要用到Comparator自定义比较器传递给对应容器或者实现Comparable接口。本文主要介绍两种方式的区别。 Comparable接口Comparable是排序接口。若一个类实现了Comparable接口,就意味着该类支持排序。实现了Comparable接口 ...
Read more »

Move Zeroes.

Posted on 2019-10-12 |
问题描述(难度简单-283)Given an array nums, write a function to move all 0‘s to the end of it while maintaining the relative order of the non-zero elements. Ex ...
Read more »

Top K Frequent Elements

Posted on 2019-10-11 |
问题描述(难度中等-347)Given a non-empty array of integers, return the k most frequent elements. Example 1: 12Input: nums = [1,1,1,2,2,3], k = 2Output: [1,2] E ...
Read more »

Majority Element

Posted on 2019-10-10 |
问题描述(难度简单-169)Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may a ...
Read more »
1…567…21
yeqiaozhu

yeqiaozhu

Walk steps step by step

101 posts
21 tags
RSS
GitHub Lindedin ZhiHu
Creative Commons
© 2020 yeqiaozhu
Powered by Hexo
|
Theme — NexT.Muse v5.1.3