码迷,mamicode.com
首页 >  
搜索关键字:冒泡排序 面试    ( 24179个结果
C++ 实践总结
?? 对于一个应用程序而言,静态链接库可能被加载多次,而动态链接库只会被加载一次。 Gameloft面试之错误一 Event: 面试官说如下程序是可以链接通过的. class Base { Public:      Base(void)     {        this-> initialize(); } ...
分类:编程语言   时间:2014-05-15 15:06:15    阅读次数:403
LeetCode-003 Longest Substring Without Repeating Characters
【题目】 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the len...
分类:其他好文   时间:2014-05-15 14:40:14    阅读次数:320
迅雷android面试题
一、android几种定时器的机制及区别。 答:在android中,经常用到的定时器主要有以下几种实现: 1、采用handler与线程的sleep(long)方法 开启一个线程,,每隔1s向Handler发送消息 public class MainActivity extends Activity { private Handler myhandler; private static...
分类:移动开发   时间:2014-05-15 06:26:20    阅读次数:440
SQLServer行转列
最近面试遇到了一道面试题,顿时有点迷糊,只说出了思路,后来百度了一下,整理了一下思路,于是记录下来,方便以后学习。(面试题请参见附件) 相关的数据表: 1.Score表 2.[User]表 SQL语句如下: --方法一:静态SQL SELECT * FROM (SELECT UID,Name, Score,ScoreName FROM Score,[User] WHERE S...
分类:数据库   时间:2014-05-15 05:46:12    阅读次数:296
LeetCode-004 Add Two Numbers
【题目】 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Out...
分类:其他好文   时间:2014-05-15 05:13:49    阅读次数:306
leetCode-002 Median of Two Sorted Arrays
leetCode-002 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 be O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
LeetCode-001 Two Sum
LeetCode-001 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:其他好文   时间:2014-05-15 04:34:50    阅读次数:293
数字之谜
数字之谜 问题1...
分类:其他好文   时间:2014-05-15 04:13:31    阅读次数:234
LeetCode-005 Longest Palindromic Substrin
【题目】 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 【题意】 题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解 【思路】 原字符串用特殊字符#间隔,如下所示: #a...
分类:其他好文   时间:2014-05-15 03:31:25    阅读次数:299
Java常用三种算法排序比较
Java常用三种算法排序比较冒泡排序:packagedemo1; /** * *@authorxiaoye2014-5-13 */ /** *有N个数据需要排序,则从第0个数开始,依次比较第0和第1个数据, *如果第0个大于第1个则两者交换,否则什么动作都不做,继续比较第1个第2个…, *这样依次类推,直至所有数据都“冒泡..
分类:编程语言   时间:2014-05-14 17:53:10    阅读次数:306
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!