码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
iOS面试题集锦2
1.什么情况使用 weak 关键字,相比 assign 有什么不同? 2.怎么用 copy 关键字? 3.这个写法会出什么问题: @property (copy) NSMutableArray *array; 4.如何让自己的类用 copy 修饰符?如何重写带 copy 关键字的 setter? 5.@property 的本质是什么?ivar、getter、setter 是如何生成并添加到这...
分类:移动开发   时间:2016-05-12 19:04:56    阅读次数:385
leetcode_c++:3Sum(015)
题目 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet (a,b,c) m...
分类:编程语言   时间:2016-05-12 18:56:55    阅读次数:229
LeetCode-Single Number II----位运算
Single Number II Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implem...
分类:其他好文   时间:2016-05-12 18:41:48    阅读次数:149
uva 3485 Optimal Array Multiplication Sequence
题目: I - Optimal Array Multiplication Sequence Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Practice UVA 348 Description Given two arrays A and B, we can de...
分类:其他好文   时间:2016-05-12 18:39:48    阅读次数:198
数组的基本操作
#include #include   //包含了exit函数 #include"malloc.h" //定义一个新的数据类型,并没有分配内存空间 struct Array {    int *pBase; //定义一个指向数组的指针    int len;    //数组中能够存放的最大元素个数    int cnt;    //当前数组中元素的个数 }; void ...
分类:编程语言   时间:2016-05-12 16:56:38    阅读次数:264
Leetcode:Maximum Product of Word Lengths
题目:Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case le...
分类:其他好文   时间:2016-05-12 16:35:27    阅读次数:127
利用无权图的单源最短路算法实现地铁换乘图
//Metro.php $MetroVertex = array( 1 => '体育中心', 2 => '体育西路', 3 => '杨箕', 4 => '东山口', 5 => '烈士陵园', 6 => '农讲所', 7 => '公园前', 8 => '西门口', 9 => '陈家祠', 10 => '长寿路', ...
分类:编程语言   时间:2016-05-12 16:18:31    阅读次数:219
dalvik字节码问答
什么是字节码? 字节码的长度怎么计算? 字节码的格式是什么? const类指令有那些? 和类、对象操作相关的指令有哪些? switch相关指令是怎么回事? Array数据操作指令有那些? quick类型的指令有那些,起到什么作用? execute-inline指令是怎么回事?...
分类:其他好文   时间:2016-05-12 16:09:36    阅读次数:309
LintCode:空格替换
LintCode:空格替换注意事项如果使用 Java 或 Python, 程序中请用字符数组表示字符串。Python方法一:这个方法没有使用字符数组,直接使用的字符串数组,虽然能通过,但是不符合要求,看方法2吧。class Solution: # @param {char[]} string: An array of Char # @param {int} length: The t...
分类:其他好文   时间:2016-05-12 16:03:46    阅读次数:123
[leetcode] 68. Text Justification 解题报告
题目链接: https://leetcode.com/problems/text-justification/ Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justifie...
分类:其他好文   时间:2016-05-12 15:16:19    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!