码迷,mamicode.com
首页 >  
搜索关键字:面向对象 c++ 面试    ( 45239个结果
详解多线程MT和多线程MD的区别
这段时间司在招实习生,而不管是远程的电话面试或者是实际现场面试中领导都喜欢问你这个问题,但是可惜的是能很好答上来的人很少。后来发现不管是应届的实习生,甚至有些实际参加工作几年的人也未必真的了解这个问题。今天想写一篇详解,希望对广大程序员有一定的帮助。区别1:全局堆句柄不一样。网上有一个说法,就是一个...
分类:编程语言   时间:2014-06-02 21:02:07    阅读次数:236
.NET基础加强,找工作之前可以看看这些............
.NET基础知识加强:1 变量命名规则:骆驼命名法:第一个字母小写之后的首字母大写,【对于方法名和类名首字母大写】→培养良好的命名规范。2 构造函数:没有返回值,方法名和类名相同,每个类中都有一个默认的无参构造函数3 面向对象的三大特性:封装,继承,多态。 →继续的特性:单根性,传递性,→ 【C.....
分类:Web程序   时间:2014-06-02 17:24:03    阅读次数:245
【leetcode】 Permutation Sequence
问题: 对于给定序列1...n,permutations共有 n!个,那么任意给定k,返回第k个permutation。0 分析: 这个问题要是从最小开始直接到k,估计会超时,受10进制转换为二进制的启发,对于排列,比如 1,2,3 是第一个,那么3!= 6,所以第6个就是3,2,1。也就是说,从开始的最小的序列开始,到最大的序列,就是序列个数的阶乘数。那么在1,3 , 2的时候呢?调整一...
分类:其他好文   时间:2014-06-01 14:03:55    阅读次数:257
java 编程基础
临近毕业,准备复习一些java的基础,顺便整理一下知识编程基础1.Java的特性和优势:简单、面向对象可移植( write once ,run anywhere )、高性能 ,分布式、动态性多线程安全健壮。2.Java的运行机制, 计算高级编程语言类型有:编译型、解释型. Java语言是这两种类型的...
分类:编程语言   时间:2014-06-01 11:41:26    阅读次数:332
LeetCode: Scramble String [87]
【题目】 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr eat / \ / g r e at / ...
分类:其他好文   时间:2014-06-01 09:41:05    阅读次数:196
LeetCode: Merge Sorted Array [088]
【题目】 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:其他好文   时间:2014-06-01 09:21:16    阅读次数:292
LeetCode: Decode Ways [090]
【题目】 A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number of ways to decode it. For example, Given encoded ...
分类:其他好文   时间:2014-06-01 08:59:37    阅读次数:258
LeetCode: Subsets II [091]
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If S = [1,2,2], a solution ...
分类:其他好文   时间:2014-06-01 08:51:06    阅读次数:292
JS学习笔记-OO疑问之封装
封装是面向对象的基础,今天所要学习的匿名函数与闭包就是为了实现JS的面向对象封装。封装实现、封装变量,提高数据、系统安全性,封装正是面向对象的基础。 匿名函数          即没有名字的函数,其创建方式为                   function(){...}          单独存在的匿名函数,无法运行,可通过赋值给变量调用或通过表达式自我执行来实现运行。...
分类:Web程序   时间:2014-06-01 07:02:03    阅读次数:302
OO (VS) SO
OO(ObjectOriented,面向对象),用一张图表示OO进行系统开发的特性:                   SO(Service-Oriented,面向服务),用一张图表示SO系统开发与运行的特性:                                                          通过这两图的对比,如果抽象一点来说的话,这两张图其实都是...
分类:其他好文   时间:2014-05-31 22:37:18    阅读次数:567
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!