码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
课堂练习--第7周(两人结对)
合作过程: 上次设计的思路和编程语言的不同,通过沟通讨论统一思想决定使用java进行编程,陈鹏负责编程,李国帅负责进行代码的审查和代码的测试。 设计思路: 设定三个变量,max是(子数组中的和的最大值,初始值为array[j])、result1(当前子数组的和,初始值为array[j]); 先让用户 ...
分类:其他好文   时间:2016-04-15 17:56:45    阅读次数:143
课堂练习(数组结对开发)
合作过程: 上次设计的思路和编程语言的不同,通过沟通讨论统一思想决定使用java进行编程,陈鹏负责编程,李国帅负责进行代码的审查和代码的测试。 设计思路: 设定三个变量,max是(子数组中的和的最大值,初始值为array[j])、result1(当前子数组的和,初始值为array[j]); 先让用户 ...
分类:编程语言   时间:2016-04-15 17:55:31    阅读次数:186
169. Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:其他好文   时间:2016-04-15 17:53:45    阅读次数:153
[LeetCode]题解(python):088 Merge Sorted Array
题目来源 https://leetcode.com/problems/merge-sorted-array/ Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. No ...
分类:编程语言   时间:2016-04-15 13:46:50    阅读次数:181
hdu-5358 First One(尺取法)
题目链接: First One Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Problem Description soda has an integer array a1,a2 ...
分类:其他好文   时间:2016-04-15 02:13:18    阅读次数:203
python numpy 使用笔记--基本矩阵操作
在学习机器学习的过程中经常会用到矩阵,那么使用numpy扩展包将是不二的选择 建议在平Python中用多维数组(array)代替矩阵(matrix) 入门请考 http://old.sebug.net/paper/books/scipydoc/numpy_intro.html# import num ...
分类:编程语言   时间:2016-04-14 22:34:17    阅读次数:270
JSON 保存到本地
NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData data] options:NSJSONReadingAllowFragments error:nil]; NSArray *docs = NSSearchPathFor ...
分类:Web程序   时间:2016-04-14 20:54:57    阅读次数:353
260. Single Number III
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements ...
分类:其他好文   时间:2016-04-14 20:51:39    阅读次数:143
YII设置用户访问过滤
设置用户访问过滤 1、哪个控制器设置访问过滤,就在哪个控制器中添加如下代码 class XxxController extends Controller { //当前控制器是否使用过滤功能 public function filters() { return array( "accessContro... ...
分类:其他好文   时间:2016-04-14 19:20:28    阅读次数:144
x信号量
comm.h 1#include<stdio.h> 2#include<stdlib.h> 3#include<sys/types.h> 4#include<sys/ipc.h> 5#include<sys/sem.h> 6#define_PATH_"." 7#define_PROJ_ID_0x6666 8 9unionsemun 10{ 11intval; 12structsemid_ds*buf; 13unsignedshort*array; 1..
分类:其他好文   时间:2016-04-14 18:12:01    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!