文章
leetcode讲解--961. N-Repeated Element in Size 2N Array
题目Inaarray<codeA</codeofsize<code2N</code,thereare<codeN1</codeuniqueelements,andexactlyoneoftheseelementsisrepeatedN
leetcode讲解--922. Sort Array By Parity II
题目Givenanarray<codeA</codeofnonnegativeintegers,halfoftheintegersinAareodd,andhalfoftheintegersareeven.Sortthearray
leetcode讲解--763. Partition Labels
题目Astring<codeS</codeoflowercaselettersisgiven.Wewanttopartitionthisstringintoasmanypartsaspossiblesothateachletterapp
leetcode讲解--561. Array Partition I
题目Givenanarrayof2nintegers,yourtaskistogrouptheseintegersintonpairsofinteger,say$(a_1,b_1),(a_2,b_2),\cdots,(a_n,b_n)$
JS 数组方法学习汇总
前言在JS中我们数组用的是比较多的了,它自带了很多方法可以用,省去了我们时间,特别是ES6当中对数组的扩展让数组具有了更强大的功能,为了以后使用数组的时候能够充分发挥数组的特性,在这里对数组的方法进行一次汇总吧。说明标题后的标识<code</code是说明该
leetcode讲解--852. Peak Index in a Mountain Array
852.PeakIndexinaMountainArrayLet&39;scallanarray<codeA</codeamountainifthefollowingpropertieshold:<codeA.length>3</
详解数组中的reduce方法
前言<blockquote 这几天面试被问到了数组的方法有哪些,回答得简直一塌糊涂,面试官说reduce的功能很强大,于是想对这个方法进行总结,在红宝书中对这个方法的描述并不算多,我也是参考了其他文章才进行总结的,下面就开始吧~</blockquotereduce的原理
包含Min函数的stack
题目题解<pre<codeimportjava.util.Stack;publicclassSolution{Stack<Integer>stacknewStack();Stack<Integer>
【剑指offer】顺时针打印矩阵
题目输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字,例如,如果输入如下4X4矩阵:12345678910111213141516则依次打印出数字1,2,3,4,8,12,16,15,14,13,9,5,6,7,11,10.题
[LeetCode] 702. Search in a Sorted Array of Unknown Size
ProblemGivenanintegerarraysortedinascendingorder,writeafunctiontosearchtargetinnums.Iftargetexists,thenreturnitsindex,oth
已加载文章中没有匹配内容,试试其他关键词或清空搜索。