码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
783. 二叉搜索树节点最小距离
题目 783. 二叉搜索树节点最小距离 给你一个二叉搜索树的根节点 root ,返回 树中任意两不同节点值之间的最小差值 。 注意:本题与 530:https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst/ 相同 示例 1 ...
分类:其他好文   时间:2021-04-13 12:40:55    阅读次数:0
Restful API
package com.example.query; import java.io.Serializable; public class UserQuery implements Serializable { private Integer id; private String username; ...
分类:Windows程序   时间:2021-04-13 12:17:10    阅读次数:0
Leetcode** 162. Find Peak Element
Description: A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find a peak element, and return it ...
分类:其他好文   时间:2021-04-13 11:52:46    阅读次数:0
Delphi Function 返回值忘记默认赋值的一些问题
Delphi function 函数的返回值,也就是Result,建议直接在函数开始就做一些初始化 例如下面的代码 procedure TForm1.FormCreate(Sender: TObject); var i:Integer; str:string; begin Memo1.Lines.C ...
分类:Windows程序   时间:2021-04-12 12:12:57    阅读次数:0
冒泡排序-python
source program: list=[]while True: print("how many number input:") try: num=int(input()) for i in range(num): a=int(input("input"+str((i+1))+"integer: ...
分类:编程语言   时间:2021-04-12 11:41:22    阅读次数:0
877. Stone Game
Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto ...
分类:其他好文   时间:2021-04-10 13:23:44    阅读次数:0
767 · 翻转数组
描述 原地翻转给出的数组 nums 原地意味着你不能使用额外空间 样例 样例 1: 输入 : nums = [1,2,5] 输出 : [5,2,1] class Solution: """ @param nums: a integer array @return: nothing """ def r ...
分类:编程语言   时间:2021-04-10 13:11:25    阅读次数:0
539 · 移动零
描述 给一个数组 nums 写一个函数将 0 移动到数组的最后面,非零元素保持原数组的顺序 1.必须在原数组上操作 2.最小化操作数 样例 例1: 输入: nums = [0, 1, 0, 3, 12], 输出: [1, 3, 12, 0, 0]. 例2: 输入: nums = [0, 0, 0, ...
分类:移动开发   时间:2021-04-10 13:09:55    阅读次数:0
常用数组Api (改变原始数据Api 即不改变原数组Api)
改变原数组方法 splice() : 返回删除项组成的数组 sort() reverse() fill() : 初始化数组 例如:new Array(26).fill(0) pop() push() shift() unshift() 不改变原数组方法 slice(begin ? ,end ?) : ...
分类:编程语言   时间:2021-04-09 13:42:08    阅读次数:0
Leetcode67-二进制求和
Leetcode67-二进制求和 给你两个二进制字符串,返回它们的和(用二进制表示)。输入为非空字符串且只包含数字 1 和 0。 示例 1: 输入: a = "11", b = "1" 输出: "100" 示例 2: 输入: a = "1010", b = "1011" 输出: "10101" 本题 ...
分类:其他好文   时间:2021-04-09 13:24:02    阅读次数:0
19410条   上一页 1 ... 9 10 11 12 13 ... 1941 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!