码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
postgres 在查询面板直接执行查询语句while
之前一直以为while 语句只能在函数中执行,今天算是涨知识了. DO $$ DECLARE i INTEGER := 1; identityId BIGINT := 200000000001; BEGIN WHILE i < 100 LOOP identityId = identityId + 1 ...
分类:其他好文   时间:2020-07-17 19:32:52    阅读次数:70
MyBatis(4):使用limit实现分页
用limit实现分页,首先要创建一个Maven项目,搭建好mybatis的实验环境,并且连接好数据库 代码 1,编写dao接口 UserMapper //查询全部用户实现分页 List<User> selectUser(Map<String,Integer> map); 2,编写对应Mapper映射 ...
分类:其他好文   时间:2020-07-17 15:59:53    阅读次数:69
~/.profile和/etc/profile的区别
登入系统读取步骤: 当登入系统时候获得一个shell进程时,其读取环境设定档有三步 : 1.首先读入的是全局环境变量设定档/etc/profile,然后根据其内容读取额外的设定的文档,如 /etc/profile.d和/etc/inputrc 2.然后根据不同使用者帐号,去其家目录读取~/.bash ...
分类:其他好文   时间:2020-07-17 13:36:23    阅读次数:82
【刷题-LeetCode】209. Minimum Size Subarray Sum
Minimum Size Subarray Sum Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which th ...
分类:其他好文   时间:2020-07-16 18:17:25    阅读次数:57
重写equals为什么要重写hashcode
三个方面去理解“重写equals为什么要重写hashcode”: 1.Object中hashCode()的源码注释 1. 源码 hashCode()的注释的最后一段的括号中写道:将对象的地址值映射为integer类型的哈希值。 2. 源码 equals()的注释:当我们将equals方法重写后有必要 ...
分类:其他好文   时间:2020-07-16 11:45:29    阅读次数:53
【leetcode_easy_array】1394. Find Lucky Integer in an Array
problem 1394. Find Lucky Integer in an Array solution #1: 使用哈希表; 使用哈希表记录数组元素和freq,然后判断是否相等,且取最大值; 注意 1. 最大值可以由下标一次递减隐性表示; 2. 数值的范围是1-500; 参考 1. leetco ...
分类:其他好文   时间:2020-07-16 00:22:19    阅读次数:51
【HDU3709】平衡数Balanced Number
Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit ...
分类:其他好文   时间:2020-07-16 00:05:52    阅读次数:79
【DP练习】B-number(HDU3652)
Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. ...
分类:其他好文   时间:2020-07-15 23:20:22    阅读次数:96
461. 汉明距离
地址:https://leetcode-cn.com/problems/hamming-distance/ <?php /** 两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。 给出两个整数 x 和 y,计算它们之间的汉明距离。 注意: 0 ≤ x, y < 231. 示例: 输 ...
分类:其他好文   时间:2020-07-15 22:55:36    阅读次数:57
C#泛型学习
泛型是泛+型,目的是为了节省代码的重复,可以复用代码。 场景: 定义了两个方法(函数) public int DisplayMyInteger(int myInt) { return myInt; } public string DisplayMyString(string myStr) { ... ...
分类:Windows程序   时间:2020-07-15 16:02:06    阅读次数:76
15811条   上一页 1 ... 34 35 36 37 38 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!