码迷,mamicode.com
首页 >  
搜索关键字:php array 数组    ( 182180个结果)
Java 之 数组概述
一、概念 1、容器 容器:是将多个数据存储到一起,每个数据称为该容器的元素。 2、数组(Array) 数组:是多个相同类型数据按一定顺序排列的集合, 并使用一个名字命名, 并通过编号的方式对这些数据进行统一管理。 二、数组相关概念 1、数组名 2、下标(索引) 3、元素 4、数组的长度 5、 三、数 ...
分类:编程语言   时间:2020-09-17 15:52:16    阅读次数:32
Vue Axios fetchJsonp请求数据
app.vue <template> <div id="app"> <v-home></v-home> </div> </template> <script> import Home from './components/Home.vue'; export default { data () { r ...
分类:移动开发   时间:2020-09-17 15:45:01    阅读次数:33
树8 File Transfer
题目:https://pintia.cn/problem-sets/1268384564738605056/problems/1278908289143574529 We have a network of computers and a list of bi-directional connect ...
分类:其他好文   时间:2020-09-17 15:44:44    阅读次数:21
【leetcode】重新排列数组
int* shuffle(int* nums, int numsSize, int n, int* returnSize){ int* arr = (int*)calloc(numsSize, sizeof(int)); int pst = 0; for (int i = 0; i < numsSi ...
分类:编程语言   时间:2020-09-17 15:41:19    阅读次数:21
jdk8
//运算 现在想获取User的身份证号码 List<User> users; List<String> idcards= users.stream().map(User::getIdcard).collect(Collectors.toList()) 数组所有元素,按某种规律计算: List<Int ...
分类:其他好文   时间:2020-09-17 15:38:10    阅读次数:22
【leetcode】按奇偶排序数组 II
int* sortArrayByParityII(int* A, int ASize, int* returnSize){ int* arr = (int*)calloc(ASize,sizeof(int)); int evenindex = 0; int oddindex = 1; for (in ...
分类:编程语言   时间:2020-09-17 15:33:05    阅读次数:32
排序算法:选择排序
题目: 给你一个整数数组 nums,请你将该数组采用选择排序方式进行升序排列。 算法描述: 选择排序(Selection-sort)是一种简单直观的排序算法。它的工作原理:首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置,然后,再从剩余未排序元素中继续寻找最小(大)元素,然后放到已排序 ...
分类:编程语言   时间:2020-09-17 15:32:29    阅读次数:29
Leetcode53. 最大子序列和
问题 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 代码 贪心算法 核心思想就是检查之前 i-1 的元素和,如果小于零就舍弃——对应下面第六行代码 1 class Solution { 2 public: 3 int maxSubArray( ...
分类:其他好文   时间:2020-09-17 14:20:44    阅读次数:24
分享一个Laravel中的管道的使用实例
从代码的角度介绍管道的实际使用方式。有关管道的说明,网上已有较多的篇幅介绍,自行查阅。 本篇博客是使用管道处理名字, 实现统一处理的目的。 一、控制器部分 <?php namespace App\Http\Controllers; use App\Pipes\RemoveBadWords; use ...
分类:其他好文   时间:2020-09-17 14:20:05    阅读次数:30
TP框架简单session redis存储设置
一,修改配置文件 Library/ThinkPHP/Conf/convention.php SESSION_TYPE => "redis" 二,添加session redis驱动 Library/ThinkPHP/Think/Session/Driver/Redis.class.php <?phpn ...
分类:其他好文   时间:2020-09-17 14:14:49    阅读次数:47
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!