码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
算法——模拟小数除法
给定两个整数,分别表示分数的分子 numerator 和分母 denominator,以 字符串形式返回小数 。 如果小数部分为循环小数,则将循环的部分括在括号内。 如果存在多个答案,只需返回 任意一个 。 对于所有给定的输入,保证 答案字符串的长度小于 104 。 leetcode 解题思路:这里 ...
分类:编程语言   时间:2021-01-05 10:58:24    阅读次数:0
Java8 forEach 使用
1. forEach and Map普通方式遍历 Map Map<String, Integer> items = new HashMap<>(); items.put("A", 10); items.put("B", 20); items.put("C", 30); items.put("D", ...
分类:编程语言   时间:2021-01-05 10:40:24    阅读次数:0
还是java牛逼,一行代码搞定各种排序
排序大家都经常用的吧,下面是个学生类,2 个字段:id[学号],score[分数], public class Stu { //编号 private Integer id; //分数 private Integer score; public Stu(Integer id, Integer scor ...
分类:编程语言   时间:2021-01-01 13:00:11    阅读次数:0
LeetCode40. 组合总和 II
思路:回溯搜索 + 剪枝。 注意,回溯做选择的方法,不适用于有 “有重复元素的数组”。因此,重点掌握 常规回溯算法的写法。 class Solution { public List<List<Integer>> combinationSum2(int[] candidates, int target ...
分类:其他好文   时间:2021-01-01 12:54:26    阅读次数:0
Delphi image 等比例缩小
//等比例缩小 uses Math; var Zoom:Extended; W,H:integer; bmp:Tbitmap; begin bmp:=Tbitmap.Create; bmp.LoadFromFile('c:\aa.bmp'); Zoom:=Image1.Width/Max(bmp.W ...
分类:Windows程序   时间:2021-01-01 11:59:30    阅读次数:0
LeetCode46. 全排列
【举一反三】: 剑指27.字符串的排列 ☆☆回溯算法入门级经典题目,理论讲解及分类习题:回溯算法入门级详解 + 练习(持续更新) 思路1:标记数组 思路2:交换位置。相比思路1,空间复杂度低。 class Solution { public List<List<Integer>> permute(i ...
分类:其他好文   时间:2020-12-31 12:49:19    阅读次数:0
minio 集群部署
version: '3.3' # starts 4 docker containers running minio server instances. # using nginx reverse proxy, load balancing, you can access # it through p ...
分类:其他好文   时间:2020-12-30 11:23:53    阅读次数:0
45. 跳跃游戏 II Jump Game II
Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your ...
分类:其他好文   时间:2020-12-29 11:18:24    阅读次数:0
LeetCode_7.整数反转
给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 示例 1: 输入: 123 输出: 321 示例 2: 输入: -123 输出: -321 示例 3: 输入: 120 输出: 21 注意: 假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [?231, 23 ...
分类:其他好文   时间:2020-12-24 11:45:02    阅读次数:0
Redis06Hash(哈希)类型
map集合,key-map的时候,这个值是一个map集合 hash应用场景是 会变更的数据 ,更适合用于对象存储,user name age,尤其是用户信息之类的经常变动的信息,String更适合字符串的存储 127.0.0.1:6379> HSET user1 name huang(integer ...
分类:其他好文   时间:2020-12-23 12:34:45    阅读次数:0
19410条   上一页 1 ... 22 23 24 25 26 ... 1941 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!