码迷,mamicode.com
首页 >  
搜索关键字:integer to roman    ( 15811个结果
@RequestParam 注解使用是bug ,未查明问题原因 也可能是 Pageable 的原因
@GetMapping @ResponseBodypublic Object findAll(@RequestParam(value = "page", required = false, defaultValue = "0") Integer page, @RequestParam(value = ...
分类:其他好文   时间:2020-05-16 16:37:11    阅读次数:90
[LeetCode] 150. Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e ...
分类:其他好文   时间:2020-05-16 12:16:55    阅读次数:53
《C程序设计语言》 练习2-8
问题描述 练习 2-8 编写一个函数rightrot(x, n),该函数返回将x循环右移(即从最右端移出的位将从最左端移入)n(二进制)位后所得到的值。 Write a function rightrot(x,n) that returns the value of the integer x ro ...
分类:编程语言   时间:2020-05-15 20:10:24    阅读次数:99
1268A - Long Beautiful Integer(字符串贪心)
"传送门开启了传送门吃" $其实要发现只需要考虑[1,k]这个循环节$ $开始我们想让数字最小那么[1,k]就和目标串相等就好了$ $然后我们从目标串的k+1位开始判断$ $Ⅰ.若相等,无事发生,继续判断下一个字母$ $Ⅱ.若比目标串大,那么继续判断下去也一定大,break$ $Ⅲ.若比目标串小,那 ...
分类:其他好文   时间:2020-05-15 20:05:32    阅读次数:71
704. Binary Search
Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exists, ...
分类:其他好文   时间:2020-05-15 09:23:28    阅读次数:56
【每日一题】- Leetcode 402. Remove K Digits
Description: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible ...
分类:其他好文   时间:2020-05-15 00:34:42    阅读次数:86
List集合如何根据泛型中某个属性进行排序
现有一个List<User>集合,User中有这两个属性(String name; Integer age) 要通过age对list进行重新排序,以下有三个方法: 第一种方法:让User实现 (implements) Comparable接口重写compareTo方法: public class U ...
分类:编程语言   时间:2020-05-14 13:36:34    阅读次数:106
C. Minimize The Integer(贪心)
"传动门前往传送门" $看完题解后觉得自己好蠢......$ $相信大部分人会先拿样例做实验$ $可以从前往后贪心,第一个位置只可以和后面的第一个不同类的数交换$ $基于这个,我们可以写出一个O(n^2)的算法$ $因为找后面第一个不同类的数和找到后进行冒泡交换的时间都难以优化!!$ $\color ...
分类:其他好文   时间:2020-05-14 10:32:11    阅读次数:65
1024 Palindromic Number (25分)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:其他好文   时间:2020-05-14 01:07:23    阅读次数:59
10JAVA基础-常用类02
Arrays 基本数据类型包装类 包装类|数据类型 | Byte|byte Short|short Integer|int Long|long Float|float Double|double Character|char Boolean|boolean Integer与int互相转换 int和S ...
分类:编程语言   时间:2020-05-13 23:12:50    阅读次数:73
15811条   上一页 1 ... 63 64 65 66 67 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!