06 2017 档案
摘要:Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
阅读全文
摘要:Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n.
阅读全文
摘要:Given a binary tree, return the inorder traversal of its nodes' values.
阅读全文
摘要:Given a string containing only digits, restore it by returning all possible valid IP address combinations.
阅读全文
摘要:Reverse a linked list from position m to n. Do it in-place and in one-pass.
阅读全文
摘要:A message containing letters from A-Z is being encoded to numbers using the following mapping:
阅读全文
摘要:Given a collection of integers that might contain duplicates, nums, return all possible subsets.
阅读全文
摘要:不经意间看到这篇帖子,想起实习面试的时候再讨论fork时,谈到了这个问题。做一个记录吧。
阅读全文
摘要:使用TCP编写的应用程序和使用UDP编写的应用程序之间存在一些本质差异,其原因在于这两个传输层之间的差别:UDP是无连接不可靠的数据报协议,非常不同于TCP提供的面向连接的可靠字节流。然而相比TCP,有些场合更适合UDP。使用UDP编写的一些常见应用程序有:DNS(域名系统)、NFS(网络文件系统)和SNMP(简单网络管理协议)。
阅读全文
摘要:Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
阅读全文
摘要:The gray code is a binary numeral system where two successive values differ in only one bit.
阅读全文
摘要:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
阅读全文
摘要:Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
阅读全文
摘要:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area.
阅读全文
摘要:Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
阅读全文
摘要:C++对象模型之站在对象模型的尖端(On the Cusp of the Object Model)
阅读全文
摘要:C++ 对象模型之执行期语意学(Runtime Semantics)
阅读全文
摘要:构造、解构、拷贝语意学(Semantics of Construction,Destruction, and Copy)
阅读全文
摘要:Given a sorted linked list, delete all duplicates such that each element appear only once.
阅读全文
摘要:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
阅读全文
摘要:## Data 语义学
一个class的data members,一般而言,可以表现这个class在程序执行时的某种状态。Nonstatic data members放置的是“个别的class object”感兴趣的数据,static data members则放置的是“整个class”感兴趣的数据。
阅读全文
摘要:C++构造函数语义学,挖掘编译器对于“对象构造过程”的干涉,以及对于“程序形式”和“程序效率”上的冲击。
阅读全文
摘要:Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
阅读全文
摘要:内存池的作用在于消除频繁调用系统默认的内存分配和释放函数所带来的开销问题。
阅读全文
摘要:Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
阅读全文
摘要:Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once.
阅读全文
摘要:Given a set of distinct integers, nums, return all possible subsets.
Note: The solution set must not contain duplicate subsets.
阅读全文
摘要:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
阅读全文
摘要:随手搜的一个问题,本来只是想印证一下自己的想法,怎料这个问题居然还有这么多不同的说法。
阅读全文
摘要:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
阅读全文

浙公网安备 33010602011771号