码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
1456. Maximum Number of Vowels in a Substring of Given Length
Given a string s and an integer k. Return the maximum number of vowel letters in any substring of s with length k. Vowel letters in English are (a, e, ...
分类:其他好文   时间:2020-06-10 13:25:37    阅读次数:70
Multiplication 3 AtCoder - abc169_c (浮点数精度问题)
Problem StatementCompute A×B, truncate its fractional part, and print the result as an integer. InputInput is given from Standard Input in the followi ...
分类:其他好文   时间:2020-06-10 12:45:39    阅读次数:90
spring注解驱动开发原理剖析
组件注册 @Configuration、@Bean注册组件 先写一个bean public class Person { private String name; private Integer age; public Person() { } public Person(String name, ...
分类:编程语言   时间:2020-06-10 11:23:46    阅读次数:69
Leetcode 397 整数替换
地址 https://leetcode-cn.com/problems/integer-replacement/ 给定一个正整数 n,你可以做如下操作: 1. 如果 n 是偶数,则用 n / 2替换 n。 2. 如果 n 是奇数,则可以用 n + 1或n - 1替换 n。 n 变为 1 所需的最小替 ...
分类:其他好文   时间:2020-06-09 23:42:46    阅读次数:76
Python random随机生成6位验证码示例代码
随机生成6位验证码代码 # -*- coding: utf-8 -*- import random def generate_verification_code(): ''' randomly generated a 6 bit verification code ''' code_list = [ ...
分类:编程语言   时间:2020-06-09 09:55:45    阅读次数:74
1470. Shuffle the Array
Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn]. Return the array in the form [x1,y1,x2,y2,...,xn,yn]. Example ...
分类:其他好文   时间:2020-06-09 09:20:59    阅读次数:68
非递归的二叉树遍历
非递归遍历二叉树借用List实现的,具体实现方法如下。前序遍历非递归代码实现:publicList<Integer>preOrder(TreeNoderoot){List<Integer>list=newArrayList<>();if(root==null){returnlist;}list.add(root.val);//根据前序遍历的特性,先将根节点的值加
分类:其他好文   时间:2020-06-09 09:17:36    阅读次数:64
pg:常用字段类型、建表、增删改查、索引
pg 常用字段类型: 类型 存储长度 描述 int2/smallint 2字节 小范围整数 int4/integer 4字节 常用的整数 varchar(n) 变长 有长度限制 bool 1字节 true/false timestamp 8字节 日期和时间(无时区) 主键: 指的是一个列或多列的组合 ...
分类:其他好文   时间:2020-06-08 20:45:34    阅读次数:122
常用的函数式接口之Function
public class FunctionDemo { public static void main(String[] args) { convert("100", s -> Integer.parseInt(s)); convert(100, i -> String.valueOf(i + 56 ...
分类:其他好文   时间:2020-06-08 19:06:20    阅读次数:65
JAVA使用Arrays.sort()升序和降序
java中对数组进行排序 使用Array.sort() 这个默认是升序 @Test public void index4(){ int scores[] = new int[]{1,2,3,89,4}; Arrays.sort(scores); for (int i:scores ) { Syste ...
分类:编程语言   时间:2020-06-07 19:17:31    阅读次数:205
14932条   上一页 1 ... 50 51 52 53 54 ... 1494 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!