摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2017-10-17 17:15 immjc 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2017-10-17 16:01 immjc 阅读(110) 评论(0) 推荐(0) 编辑
摘要: std::vector 向量是表示可以动态改变大小的数组的序列容器。就像数组一样,向量为它们的元素使用连续的存储位置,这意味着它们的元素也可以使用对其元素的常规指针的偏移进行访问,并且与数组中一样有效。但是与数组不同的是,它们的大小可以动态地改变,其存储由容器自动处理。在内部,向量使用动态分配的数组 阅读全文
posted @ 2017-10-17 13:34 immjc 阅读(4134) 评论(0) 推荐(0) 编辑