码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
[LeetCode] 60. Permutation Sequence
The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque ...
分类:其他好文   时间:2020-06-21 10:13:55    阅读次数:48
166. Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:其他好文   时间:2020-06-21 10:09:51    阅读次数:35
0279. Perfect Squares (M)
Perfect Squares (M) 题目 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Exa ...
分类:其他好文   时间:2020-06-21 09:19:56    阅读次数:46
0018. 4Sum (M)
4Sum (M) 题目 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b+ c + d = target? Find a ...
分类:其他好文   时间:2020-06-21 09:18:37    阅读次数:40
LeetCode习题总结-算法(19)
第十九天LeetCode刷题-算法 第十九天习题——字符串转换整数的函数 此题仅为个人总结参考,如有错误还请指出 首先先上原题: 来源:力扣(LeetCode)原题链接:https://leetcode-cn.com/problems/string-to-integer-atoi/拿到这道题,会发现 ...
分类:编程语言   时间:2020-06-20 01:30:59    阅读次数:74
剑指offer:面试题22、栈的压入、弹出序列
###题目描述 输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否可能为该栈的弹出顺序。假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出序列。(注意:这两个序 ...
分类:其他好文   时间:2020-06-20 01:28:17    阅读次数:60
java常用类型转换
1.String转int Integer.parseInt(str); 2.int转String String.valueOf(int) 3.String转char[] String.toCharArray(); 4.char[]转String new String(char[]) 5.String ...
分类:编程语言   时间:2020-06-20 01:04:15    阅读次数:54
二叉树的创建与遍历(递归实现)
在树的基本概念和术语总结一文中介绍了二叉树的基本结构。 在不知道怎样用递归?按步骤来!一文中介绍了如何使用递归。 二叉树的结构是递归的,所以创建、遍历也可以通过递归实现。 下面是一颗二叉树: 结点的定义: public class Node { Integer value; Node leftChi ...
分类:其他好文   时间:2020-06-19 15:53:16    阅读次数:46
使用sqlalchemy操作数据库
sqlalchemy是一种常用的ORM(Object-Relational Mapping对象关系映射)框架。 1 from sqlalchemy import create_engine, Column, Integer, String, DateTime, Float, Date, BLOB, ...
分类:数据库   时间:2020-06-19 12:24:49    阅读次数:62
Redis缓存实例2:缓存购物车数据
思路: 代码: @Autowired private RedisTemplate redisTemplate; @Override public void addCart(String skuId, Integer num, String username) { /** * 1)查询redis中的数 ...
分类:其他好文   时间:2020-06-19 00:50:05    阅读次数:67
14932条   上一页 1 ... 46 47 48 49 50 ... 1494 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!