@GetMapping @ResponseBodypublic Object findAll(@RequestParam(value = "page", required = false, defaultValue = "0") Integer page, @RequestParam(value = ...
                            
                            
                                分类:
其他好文   时间:
2020-05-16 16:37:11   
                                阅读次数:
90
                             
                    
                        
                            
                            
                                    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
                             
                    
                        
                            
                            
                                    问题描述 练习 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
                             
                    
                        
                            
                            
                                    "传送门开启了传送门吃" $其实要发现只需要考虑[1,k]这个循环节$ $开始我们想让数字最小那么[1,k]就和目标串相等就好了$ $然后我们从目标串的k+1位开始判断$ $Ⅰ.若相等,无事发生,继续判断下一个字母$ $Ⅱ.若比目标串大,那么继续判断下去也一定大,break$ $Ⅲ.若比目标串小,那 ...
                            
                            
                                分类:
其他好文   时间:
2020-05-15 20:05:32   
                                阅读次数:
71
                             
                    
                        
                            
                            
                                    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
                             
                    
                        
                            
                            
                                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<User>集合,User中有这两个属性(String name; Integer age) 要通过age对list进行重新排序,以下有三个方法: 第一种方法:让User实现 (implements) Comparable接口重写compareTo方法: public class U ...
                            
                            
                                分类:
编程语言   时间:
2020-05-14 13:36:34   
                                阅读次数:
106
                             
                    
                        
                            
                            
                                    "传动门前往传送门" $看完题解后觉得自己好蠢......$ $相信大部分人会先拿样例做实验$ $可以从前往后贪心,第一个位置只可以和后面的第一个不同类的数交换$ $基于这个,我们可以写出一个O(n^2)的算法$ $因为找后面第一个不同类的数和找到后进行冒泡交换的时间都难以优化!!$ $\color ...
                            
                            
                                分类:
其他好文   时间:
2020-05-14 10:32:11   
                                阅读次数:
65
                             
                    
                        
                            
                            
                                    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
                             
                    
                        
                            
                            
                                    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