码迷,mamicode.com
首页 >  
搜索关键字:ma    ( 3043个结果
最大连续子段和
考虑三种情况: 1.从左端点开始,是否要跨越。 2.从右端点开始,是否要跨越。 3.从中间开始,向两边延伸。 代码: void pushup(int index) { tree[index].s=tree[index*2].s+tree[index*2+1].s; tree[index].ls=ma ...
分类:其他好文   时间:2020-05-01 10:37:20    阅读次数:60
算法 - 基数排序
要点:利用空间换时间,有桶排序的思想,按照基数规则转换,使空间开销较小,但理解起来比计数排序复杂的多。 1 import java.util.Random; 2 3 public class RadixSort { 4 5 public void sort(int arr[]) { 6 int ma ...
分类:编程语言   时间:2020-04-30 17:21:29    阅读次数:68
YOLOv4 资源环境配置和测试样例效果
YOLOv4 资源环境配置和测试样例效果 基本环境:cuda=10.0,cudnn>=7.0, opencv>=2.4 一、下载yolov4 git clone https://github.com/AlexeyAB/darknet.git 二、编译 1. # cd到darknet目录下 2. ma ...
分类:其他好文   时间:2020-04-28 09:24:28    阅读次数:2928
[LC] 1219. Path with Maximum Gold
In a gold mine grid of size m * n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. Return the ma ...
分类:其他好文   时间:2020-04-28 00:42:36    阅读次数:52
Maven入门
Maven的配置 步骤一:Window/Preferences/Maven/Installations/add 步骤一:Window/Preferences/Maven/User Setting Maven的简介和使用 Maven介绍 Maven核心特性 Maven的坐标 Maven的目录结构 Ma ...
分类:其他好文   时间:2020-04-27 22:28:48    阅读次数:64
【Java基础】判断语句
IF判断语句 格式: if(关系表达式){ 语句体; } public class Demo01If{ public static void main(String [] args){ int age=19; if (age>18){ System.out.println("you are a ma ...
分类:编程语言   时间:2020-04-27 09:41:23    阅读次数:85
小程序画布(2)
wxml: <view catchtouchmove="preventTouchMove" wx:if="{{canvas_ma}}"> <view class='warp_' style="overflow-y: scroll;"> <view style='' style='position:  ...
分类:微信   时间:2020-04-25 19:15:17    阅读次数:98
net core 3.0 多线程学习1
问题:net core 3.0不支持 t1.Abort(); 线程终止方法,会报异常。 异常信息:System.PlatformNotSupportedException:“Thread abort is not supported on this platform.” static void Ma ...
分类:编程语言   时间:2020-04-23 00:49:19    阅读次数:206
【每日一练】两个数字长度一致,不一致的前面加0补齐
```jsfunction padding0ToHeader(num1,num2){ let a = num1.toString() let b = num2.toString() let maxLength = Math.max(a.length,b.length) a=a.padStart(ma... ...
分类:其他好文   时间:2020-04-23 00:31:21    阅读次数:70
python练习题4.28矩阵转置
将一个3×3矩阵转置(即行和列互换)。输入格式:在一行中输入9个小于100的整数,其间各以一个空格间隔。输出格式:输出3行3列的二维数组,每个数据输出占4列。代码如下:(说曹操,曹操到,切片来啦。)#!/usr/bin/python# -*- coding: utf-8 -*-s = list(ma... ...
分类:编程语言   时间:2020-04-22 13:05:31    阅读次数:319
3043条   上一页 1 ... 14 15 16 17 18 ... 305 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!