码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
GetThreadContext和SetThreadContext
#include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; DWORD WINAPI ThreadProc(LPVOID lpParamter) { for (int i = 0;i<10;i++ ...
分类:其他好文   时间:2020-06-16 14:42:24    阅读次数:52
Lc112_路径总和
package com.example.demo; import java.util.LinkedList; /** * 112. 路径总和 * 给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。 * <p> * 说明: 叶子节点是指没有子节点 ...
分类:其他好文   时间:2020-06-16 12:55:12    阅读次数:52
POJ - 1426 Find The Multiple
题目: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. Y ...
分类:其他好文   时间:2020-06-16 12:50:35    阅读次数:58
Jpa的基本使用
###Jpa的基本使用(本次实践课用到的) Jpa是什么 JPA是Java Persistence API的简称,中文名Java持久层API,是JDK 5.0注解或XML描述对象-关系表的映射关系,并将运行期的实体对象持久化到数据库中。 安装IDEA旗舰版,学生授权申请方式 创建Springboot ...
分类:其他好文   时间:2020-06-15 20:55:27    阅读次数:71
C - Lamps
We have N bulbs arranged on a number line, numbered 1 to N from left to right. Bulb i is at coordinate i. Each bulb has a non-negative integer paramet ...
分类:其他好文   时间:2020-06-15 15:42:11    阅读次数:80
并查集
import java.util.HashMap;import java.util.List;import java.util.Stack;/** * 并查集 * <p> * 1)有若干个样本a、b、c、d,假设类型是V * 2)在并查集中最开始认为每个样本都在单独的集合里 * 3)用户可以在任何时 ...
分类:其他好文   时间:2020-06-14 10:52:46    阅读次数:55
Java基础----ArrayList中的clear方法以及ArrayList对象
今天在做Leetcode 102. 二叉树的层序遍历 时, 不管怎么试,每一层的输出都为空,如下图: 上述结果所使用的代码如下。 1 public List<List<Integer>> levelOrder(TreeNode root) { 2 if(root == null) return nu ...
分类:编程语言   时间:2020-06-14 10:46:26    阅读次数:134
Stream`提供的功能介绍
1.前言Stream是Java8中新加的一个很重要的一个功能,从这篇文章我会逐个介绍Stream提供的功能,并以简单的实际的例子来告诉大家怎么用Stream。2.介绍请注意,首先我们不要把Java8Stream跟JavaI/O混淆,它们没有多大的关系。简单来说,Stream是数据源的包装,它允许我们操作数据源并且可以方便快速地进行批量处理。另外Stream不会存储数据,它不是一个数据结构,也不会修
分类:其他好文   时间:2020-06-14 09:12:22    阅读次数:83
leetcode-----18. 四数之和
链接:https://leetcode-cn.com/problems/4sum/ 代码 class Solution { public List<List<Integer>> fourSum(int[] nums, int target) { List<List<Integer>> ans = n ...
分类:其他好文   时间:2020-06-13 21:04:30    阅读次数:53
Laravel——$rules参数规则
public function orderList() { $rules = [ 'order_status' => 'required|integer|in:1,2,3,4,5', 'page' => 'required|integer|min:1', 'per_page' => 'require ...
分类:其他好文   时间:2020-06-13 19:13:02    阅读次数:119
14932条   上一页 1 ... 48 49 50 51 52 ... 1494 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!