码迷,mamicode.com
首页 >  
搜索关键字:程序员面试    ( 337个结果
【哈希表】Longest Consecutive Sequence
题目:leetcode Longest Consecutive Sequence   Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2]...
分类:其他好文   时间:2015-04-06 17:22:41    阅读次数:160
【动态规划】Dungeon Game
题目:leetcode Dungeon Game   The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. ...
分类:其他好文   时间:2015-04-06 08:51:43    阅读次数:150
【贪婪算法、动态规划】Jump Game II
题目:leetcode Jump Game II   Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump...
分类:编程语言   时间:2015-04-01 17:50:59    阅读次数:200
【贪心算法】Longest Substring Without Repeating Characters
题目:leetcode Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repea...
分类:编程语言   时间:2015-03-29 18:08:07    阅读次数:152
【经典】Median of Two Sorted Arrays
题目:leetcode Median of Two Sorted Arrays   There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ...
分类:其他好文   时间:2015-03-29 12:23:21    阅读次数:143
STL的移动算法
要在自定义类型中使用移动算法,需要在元素中提供移动赋值运算符,移动赋值运算符和std::move()详见《c++高级编程》第9章 class mystring { public: string mstr; mystring(){} mystring(const string &str) :mstr(str){} mystring& operator=(mystring&& r...
分类:移动开发   时间:2015-03-19 18:33:03    阅读次数:130
【数学】小飞的电梯调度算法
题目:《编程之美》P53 若干个乘客从一楼上电梯,电梯出发后,只能停靠在某一层。问电梯停在哪一层,可以让所有乘客走的总楼层数最少? 分析: 电梯可以停在负层,但没有0层。所以程序返回0时,表示出错。这里有个陷阱,因为没有0层,所以在计算时,应该先把负数的楼层加1.当最后算出来的结果小于等于0时,再减去一,才是实际中的负数层数。         int best_stop_floor...
分类:编程语言   时间:2015-03-19 11:38:22    阅读次数:207
/*程序员面试宝典*/Which of the following statements describe the results of executing the code snippet below in C++?
Which of the following statements describe the results of executing the code snippet below in C++?1 int i;2 3 void main()4 5 {6 7 int i = i;8 9 }A...
分类:编程语言   时间:2015-03-14 22:55:26    阅读次数:169
Android开发者面试经——1.常见人事面试问题
做为程序员,我们都是有梦想的人,有时候当我们不满足现状,想要进一步提升自己的能力,拓展自己的视野时,跳槽可能是一个我们终将面对的选择。可是我们的工作是成天和电脑打交道,造成我们的人际交往,交流能力不是很强,在面试上我们往往要准备的很充分,才能获得一份心仪的好工作,接下来我给大家整理一下面试中常见的一些问题,包括人事面试和笔试题,今天就来说说人事面试: 1、请你自我介绍一下你自己?回答提示:一般人回...
分类:移动开发   时间:2015-03-11 17:16:51    阅读次数:251
337条   上一页 1 ... 26 27 28 29 30 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!