摘要: Invert Binary Tree My Submissions QuestionEditorial Solution Total Accepted: 87818 Total Submissions: 193396 Difficulty: Easy Invert a bina... 阅读全文
posted @ 2016-04-30 23:52 Free_Open 阅读(96) 评论(0) 推荐(0)
摘要: Same Tree My Submissions QuestionEditorial Solution Total Accepted: 126116 Total Submissions: 291884 Difficulty: Easy Given two binary tree... 阅读全文
posted @ 2016-04-30 23:45 Free_Open 阅读(85) 评论(0) 推荐(0)
摘要: Remove Element My Submissions QuestionEditorial Solution Total Accepted: 115367 Total Submissions: 340963 Difficulty: Easy Given an array a... 阅读全文
posted @ 2016-04-30 23:39 Free_Open 阅读(123) 评论(0) 推荐(0)
摘要: Swap Nodes in Pairs My Submissions QuestionEditorial Solution Total Accepted: 95230 Total Submissions: 270562 Difficulty: Easy Given a link... 阅读全文
posted @ 2016-04-30 23:27 Free_Open 阅读(112) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/justdoithai/article/details/51287649 理解与分析Implement strStr() My Submissions QuestionEditorial Solution Total Accepted:... 阅读全文
posted @ 2016-04-30 23:08 Free_Open 阅读(196) 评论(0) 推荐(0)
摘要: 前言:曾经有次在阿里的面试中遇到这个基础的问题,当时知道有这么回事,可是时间久了便 想不起来,可能是不怎么用到,基本调用库什么的,还有个是理解不深刻,不能得到show me the code 的程度,才会使得遗忘,现在从新翻出来,参看一下大家已经造的轮子,发现理解 更加深刻,这也就是写博... 阅读全文
posted @ 2016-04-30 20:20 Free_Open 阅读(235) 评论(0) 推荐(0)
摘要: 114、java中实现多态的机制是什么 答:重写,重载。方法的重写Overriding和重载Overloading是Java多态性的不同表现。 重写Overriding是父类与子类之间多态性的一种表现,重载Overloading是一个类中多态性的一种表现。如果在子类中定义某方法与其父类有相... 阅读全文
posted @ 2016-04-30 17:31 Free_Open 阅读(252) 评论(0) 推荐(0)
摘要: 相似题目 4sum http://blog.csdn.net/justdoithai/article/details/51195124http://blog.csdn.net/justdoithai/article/details/51122038 2sum3Sum My Su... 阅读全文
posted @ 2016-04-30 12:44 Free_Open 阅读(182) 评论(0) 推荐(0)
摘要: 利用unordered_map代替hash_map 实验环境 操作系统 fedora9编译器版本 gcc4.3 实验方式 各种map使用插入和查找,比较速度和相关性能 代码 参考代码下面测试说明了速度之间的比较: map类型 插入速度 插入和查找速度 hash... 阅读全文
posted @ 2016-04-30 11:18 Free_Open 阅读(672) 评论(0) 推荐(0)
摘要: 如果调试过程无调试信息,检查编译选项是否切换到了release下 比如Cfree5等编译器 ms为了方便调试才诞生了DEBUG版。 这也导致了MFC有两个功能一至但版本不同的类库,一个为DEBUG版,一个是RELEASE版。 DEBUG:这个版本生成的文件包含调试信息可以在DEV环境下很方... 阅读全文
posted @ 2016-04-30 09:48 Free_Open 阅读(317) 评论(0) 推荐(0)