码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
LeetCode每日一题:802 找到最终安全状态
题目描述: 在有向图中,我们从某个节点出发和每个转向出开始,沿着有向图的边走。如果我们到达的节点是终点(即它没有连出的有向边),我们停止 现在,如果我们最后能走到终点,那么我们的起始节点是最终安全的。更具体的说,存在一个自然数k,无论选择从哪里开始行走,我们走了不 到k步必能停止在一个终点。 那些节 ...
分类:其他好文   时间:2020-06-27 13:11:23    阅读次数:50
0303. Range Sum Query - Immutable (E)
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:其他好文   时间:2020-06-27 09:44:58    阅读次数:46
0041. First Missing Positive (H)
First Missing Positive (H) 题目 Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example ...
分类:其他好文   时间:2020-06-27 09:31:04    阅读次数:53
LeetCode 797. 所有可能的路径
题目链接 797. 所有可能的路径 题目分析 这个题,给了一个有向图的背景,然后要求我们把所有满足条件的路径都输出出来,看到返回值上的List<List>,刷题量比较多的人都知道这种一般都是回溯法解决。 代码实现 class Solution { public List<List<Integer>> ...
分类:其他好文   时间:2020-06-26 19:53:39    阅读次数:43
Spring IoC bean 的加载
前言 本系列全部基于 Spring 5.2.2.BUILD-SNAPSHOT 版本。因为 Spring 整个体系太过于庞大,所以只会进行关键部分的源码解析。 本篇文章主要介绍 Spring IoC 容器是怎么加载 bean 的。 正文 我们先看一下Spring IoC BeanDefinition ...
分类:编程语言   时间:2020-06-26 14:27:21    阅读次数:48
浙大保研2019年上机题 7-1 Happy Numbers (20分)
7-1 Happy Numbers (20分) A happy number is defined by the following process: Starting with any positive integer, replace the number by the sum of the s ...
分类:移动开发   时间:2020-06-26 14:26:29    阅读次数:90
idea连接数据库进行查找
首先需要打印出来,所以我们先创建一个类,用来对应数据库中的值并且输出。 public class User { private Integer id; private String name; private int age; private int teacherId; public int ge ...
分类:数据库   时间:2020-06-25 23:47:45    阅读次数:214
MVC2 项目实践
组员:黄杰辉 201731062223 谢仁峻 201731062209 一、数据库访问层 创建一个BaseDao,用于继承,方便之后的操作 package Dao.Impl; import Utils.JdbcUtils; import org.apache.commons.dbutils.Que ...
分类:Web程序   时间:2020-06-25 15:58:22    阅读次数:69
LeetCode每日一题:662二叉树最大宽度
题目描述: 给定一个二叉树,编写一个函数来获取这个树的最大宽度。树的宽度是所有层中的最大宽度。这个二叉树与满二叉树(full binary tree)结构相同,但一些节点为空。 每一层的宽度被定义为两个端点(该层最左和最右的非空节点,两端点间的null节点也计入长度)之间的长度。 解题原理: 宽度优 ...
分类:其他好文   时间:2020-06-25 15:30:17    阅读次数:49
Leetcode: Numbers With Repeated Digits
description Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. Example In ...
分类:其他好文   时间:2020-06-25 14:09:06    阅读次数:65
15811条   上一页 1 ... 45 46 47 48 49 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!