码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
单链表(C语言)
单链表:单向无循环,最后置于空//SeqList.h#pragmaonce #include<string.h> #include<stdlib.h> #include<assert.h> #defineMAX_SIZE100 typedefintDataType; typedefstructSeqlist { DataType*_array; size_t_size; size_t_capacity; }Seqlist; voidI..
分类:编程语言   时间:2016-03-28 22:06:19    阅读次数:236
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:其他好文   时间:2016-03-28 21:50:30    阅读次数:218
leetcode:Minimum Subarray
1、 Given an array of integers, find the subarray with smallest sum. Return the sum of the subarray. For [1, -1, -2, 1], return -3 2、 1、只需要求出最小值 2、利用su ...
分类:其他好文   时间:2016-03-28 18:48:02    阅读次数:141
Leetcode 300 Longest Increasing Subsequence
Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest inc ...
分类:其他好文   时间:2016-03-28 18:24:14    阅读次数:116
Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target va ...
分类:其他好文   时间:2016-03-28 15:25:59    阅读次数:120
Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the or ...
分类:其他好文   时间:2016-03-28 15:00:51    阅读次数:144
postgresql 行转列,拼接字符串
select * from (select u.*, array_to_string ( ARRAY ( SELECT role_id FROM k_user_role ur WHERE ur.user_id = u.op_id ),',' ) AS user_role, array_to_stri ...
分类:数据库   时间:2016-03-28 13:20:56    阅读次数:476
itop 配置文件信息   config-itop.php
root@ITSM:/var/www/html/new_itop#vimconf/production/config-itop.php $aConfig=array( //ConfigurationoftheActiveDirectoryconnection ‘host‘=>‘192.168.**.**‘,//IPorFQDNofyourdomaincontroller ‘port‘=>‘389‘,//LDAPport,398=LDAP,636=LDAPS ‘dn‘=>‘OU=VB-User..
分类:Web程序   时间:2016-03-28 12:08:18    阅读次数:576
JavaScript之基础-9 JavaScript String(内置对象、String概述)
一、JavaScript内置对象内置对象-什么是内置对象?内置对象就是ECMAScript标准中已经定义好的,由浏览器厂商已经实现的标准对象-内置对象中封装了专门的数据和操作数据常用的API-JavaScript中内置对象列表-String、Boolean、Number、Array、Date、RegExp、Math、Error、Function..
分类:编程语言   时间:2016-03-28 12:05:31    阅读次数:287
Division and Recursion-find middle element
#include <iostream>using namespace std; void swap(int array[], int beginPos, int endPos){ int t = array[beginPos]; array[beginPos] = array[endPos]; ar ...
分类:其他好文   时间:2016-03-28 08:46:49    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!