Given an array A of integers, we must modify the array in the following ...
A conveyor belt has packages that must be shipped from one port to anoth...
将一个给定字符串根据给定的行数,以从上往下、从左到右进行 Z 字形排列。 比如输入字符串为 "LEETCODEISHIRING" 行数为 3 时...
Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0]...
In a row of dominoes, A[i] and B[i] represent the top and bottom halves ...
实现一个特殊的栈,在实现栈的基本功能的基础上,再实现返回栈中最小元素的操作。 解题思路 使用两个栈来实现,其中一个栈用来保存栈中的元素,另一个栈...
In a list of songs, the i-th song has a duration of time[i] seconds. Ret...
在计算机视觉领域,卷积神经网络(CNN)已经成为最主流的方法,比如GoogLenet、VGG-19、Incepetion等模型。CNN史上的一个...
一个栈依次压入1、2、3、4、5,那么从栈顶到栈底分别是5、4、3、2、1。要求只用递归,不借助其他数据结构,实现栈的逆序,即从栈顶到栈底变为1...