摘要: 构造、解构、拷贝语意学(Semantics of Construction,Destruction, and Copy) 阅读全文
posted @ 2017-06-09 09:46 JeffLai 阅读(1433) 评论(6) 推荐(1) 编辑
摘要: C++函数语义学 阅读全文
posted @ 2017-06-07 21:45 JeffLai 阅读(766) 评论(0) 推荐(1) 编辑
摘要: ## Data 语义学 一个class的data members,一般而言,可以表现这个class在程序执行时的某种状态。Nonstatic data members放置的是“个别的class object”感兴趣的数据,static data members则放置的是“整个class”感兴趣的数据。 阅读全文
posted @ 2017-06-06 20:04 JeffLai 阅读(1106) 评论(1) 推荐(1) 编辑
摘要: 写在前面的话,本来看网上的面经就一直有关于哈希表的问题,再加之实验室同学头条面试的时候让实现一个unordered_map,本来已经把对哈希表的总结和实现提上日程了。奈何太懒,一天拖一天,直到自己面阿里的时候被面试官在哈希表上翻来覆去蹂躏的时候,真的是不得不感叹一句,活该!!! 阅读全文
posted @ 2017-05-27 17:35 JeffLai 阅读(3151) 评论(2) 推荐(2) 编辑
摘要: 众所周知,C++虚函数是一大难点,也是面试过程中必考部分。此次,从虚函数的相关概念、虚函数表、纯虚函数、再到虚继承等等跟虚函数相关部分,做一个比较细致的整理和复习。 阅读全文
posted @ 2017-04-04 22:37 JeffLai 阅读(1100) 评论(2) 推荐(6) 编辑
摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. 阅读全文
posted @ 2017-11-01 20:22 JeffLai 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? 阅读全文
posted @ 2017-06-22 09:32 JeffLai 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. 阅读全文
posted @ 2017-06-22 09:30 JeffLai 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the inorder traversal of its nodes' values. 阅读全文
posted @ 2017-06-21 20:27 JeffLai 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. 阅读全文
posted @ 2017-06-21 17:20 JeffLai 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from position m to n. Do it in-place and in one-pass. 阅读全文
posted @ 2017-06-21 15:43 JeffLai 阅读(164) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: 阅读全文
posted @ 2017-06-21 10:44 JeffLai 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a collection of integers that might contain duplicates, nums, return all possible subsets. 阅读全文
posted @ 2017-06-20 23:07 JeffLai 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 不经意间看到这篇帖子,想起实习面试的时候再讨论fork时,谈到了这个问题。做一个记录吧。 阅读全文
posted @ 2017-06-20 16:27 JeffLai 阅读(22381) 评论(0) 推荐(2) 编辑
摘要: 使用TCP编写的应用程序和使用UDP编写的应用程序之间存在一些本质差异,其原因在于这两个传输层之间的差别:UDP是无连接不可靠的数据报协议,非常不同于TCP提供的面向连接的可靠字节流。然而相比TCP,有些场合更适合UDP。使用UDP编写的一些常见应用程序有:DNS(域名系统)、NFS(网络文件系统)和SNMP(简单网络管理协议)。 阅读全文
posted @ 2017-06-20 15:17 JeffLai 阅读(1863) 评论(0) 推荐(0) 编辑