6 两鬓已不能斑白

尚未进行身份认证

本科就读于松花江畔、研究生求学于白山黑水,计算机专业。现就职于融360java爬虫开发。

等级
TA的排名 2k+

897. Increasing Order Search Tree

897.IncreasingOrderSearchTreeGivenatree,rearrangethetreeinin-ordersothattheleftmostnodeinthetreeisnowtherootofthetree,andeverynodehasnoleftchildandonly1rightchil...

2019-03-27 23:26:40

942. DI String Match

942.DIStringMatch下班到家后,刷了刷leetcode,发现了一道很有意思的小题,题目如下:GivenastringSthatonlycontains“I”(increase)or“D”(decrease),letN=S.length.ReturnanypermutationAof[0,1,…,N]suchthatfo...

2019-03-26 22:38:39

LeetCode刷题笔记目录

1、TwoSumhttps://blog.csdn.net/u010429424/article/details/7764898927、RemoveElementhttps://blog.csdn.net/u010429424/article/details/7326056453、MaximumSubarrayhttps://blog.csdn.net/u010429424/art...

2019-03-01 22:59:39

692. Top K Frequent Words:HashMap排序

因为平时工作中较少能接触到HashMap的排序,因此周末借由一道leetcode上的小题,再写一写HashMap的排序代码,特此记录。原题如下:TopKFrequentWordsGivenanon-emptylistofwords,returnthekmostfrequentelements.Youranswershouldbesortedbyf...

2019-01-06 11:23:48

Leetcode 215. Kth Largest Element in an Array

Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Example1:Input:[3,2,1,5,6,4]andk=2Output:5Exampl...

2018-12-31 00:27:07

Leetcode 946. Validate Stack Sequences

Giventwosequencespushedandpoppedwithdistinctvalues,returntrueifandonlyifthiscouldhavebeentheresultofasequenceofpushandpopoperationsonaninitiallyemptystack.Example1:...

2018-12-23 16:14:50

338. Counting Bits

Givenanonnegativeintegernumbernum.Foreverynumbersiintherange0≤i≤numcalculatethenumberof1’sintheirbinaryrepresentationandreturnthemasanarray.Example1:Input:2Output...

2018-11-11 17:32:36

Leetcode 703.Kth Largest Element in a Stream

Designaclasstofindthekthlargestelementinastream.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.YourKthLargestclasswillhaveaconstructorwhi...

2018-11-03 22:52:13

Java Exception、Error学习

JavaException、Error学习一、Exception(异常)、Error(错误)均继承自Throwable,表示可以被抛出,需要使用catch捕获。IOException:I/O操作异常,一般在文件读写时捕获ClassNotFoundException:找不到指定类的异常(编译时Class.forName)TimeoutException:超时异常,Exceptionth...

2018-10-28 15:37:00

yolo3 + python 找出图像中的汉字

yolo3+python识别二维码中的汉字源码下载地址https://github.com/lijialinneu/keras-yolo3-master/准备环境(1)python环境,安装anaconda3,我装的是python3.6版本(2)安装tensorflow(cpu版)、keras,直接用pipinstall命令下载,或condainstall命令(3)下载...

2018-10-21 09:34:25

leetcode 广搜小题两道

leetcode广搜小题两道周末无聊,故刷两道小题,用的都是广搜的思想MinimumDepthofBinaryTreeGivenabinarytree,finditsminimumdepth.Theminimumdepthisthenumberofnodesalongtheshortestpathfromtherootnode...

2018-09-22 23:49:43

783. Minimum Distance Between BST Nodes

GivenaBinarySearchTree(BST)withtherootnoderoot,return theminimumdifferencebetweenthevaluesofanytwodifferentnodesinthetree.Example:Input:root=[4,2,6,1,3,null,null...

2018-09-09 09:13:58

SQL join、left join小例子

最近在刷Leetcode中,遇到两道SQL小题,记录在此join小例子:181.EmployeesEarningMoreThanTheirManagers197.RisingTemperatureleftjoin小例子:175.CombineTwoTables181.EmployeesEarningMore...

2018-09-09 08:27:33

690. Employee Importance

Youaregivenadatastructureofemployeeinformation,whichincludestheemployee’suniqueid,hisimportancevalueandhisdirectsubordinates’id.Forexample,employee1istheleaderofemploy...

2018-09-08 23:35:06

888. Fair Candy Swap

**888.FairCandySwap**AliceandBobhavecandybarsofdifferentsizes:A[i]isthesizeofthei-thbarofcandythatAlicehas,andB[j]isthesizeofthej-thbarofcandythatBobhas.Since...

2018-08-25 10:56:36

Leetcode 关于树的题:589. N-ary Tree Preorder Traversal 和 429. N-ary Tree Level Order Traversal

Givenann-arytree,returnthepreordertraversalofitsnodes’values.Forexample,givena3-arytree:Returnitspreordertraversalas:[1,3,5,6,2,4].Note:Recursivesolutionistrivial,cou...

2018-08-25 09:30:26

695. Max Area of Island

Givenanon-empty2Darraygridof0’sand1’s,anislandisagroupof1’s(representingland)connected4-directionally(horizontalorvertical.)Youmayassumeallfouredgesofthegridaresurro...

2018-06-28 21:32:33

811. Subdomain Visit Count

Awebsitedomainlike“discuss.leetcode.com”consistsofvarioussubdomains.Atthetoplevel,wehave“com”,atthenextlevel,wehave“leetcode.com”,andatthelowestlevel,“discuss.leetcode.com”...

2018-06-27 21:18:54

821. Shortest Distance to a Character

GivenastringS andacharacterC,returnanarrayofintegersrepresentingtheshortestdistancefromthecharacterCinthestring.Example1:Input:S="loveleetcode",C='e'Output:[3...

2018-06-22 09:46:10

852. Peak Index in a Mountain Array

Let’scallanarrayAamountain ifthefollowingpropertieshold:A.length>=3Thereexistssome0<i <A.length-1suchthatA[0]<A[1]<...A[i-1]<A[i]...

2018-06-18 11:03:15

查看更多

勋章 我的勋章
  • 专栏达人
    专栏达人
    授予成功创建个人博客专栏的用户。专栏中添加五篇以上博文即可点亮!撰写博客专栏浓缩技术精华,专栏达人就是你!