- 博客(3)
- 资源 (12)
- 收藏
- 关注
原创 百度面试
昨天面试百度~发挥一般~2个算法题都没发挥好~题1:两个链表La,Lb,La与Lb有公共子链,现要找到La与Lb的第一个公共子节点。面试的时候没想到什么好方法~扯了一大堆单链结构中双向访问的技术,还是不能完全解决这个问题,因为虽然时间开销是小但是有空间开销而且破坏原链表结构。后来在返程公车上想到正解,其实很简单,先求La和Lb的长度,然后得到长度差detaLength,较长的链表
2009-03-11 10:26:00 441 1
原创 对Loki::Tuple的扩展EasyTuple(附Tupleoperator实现)
Tupleoperator的实现也主要用FieldHelper来实现,借用了Loki::TL::IterateTypes的思想template class Operator>struct TupleOperator{ typedef Loki::TL::Length lengh; typedef Loki::FieldHelper head_helper; typedef
2008-12-04 16:43:00 311
原创 对Loki::Tuple的扩展EasyTuple
Loki中的Tuple主要是基于GenScatterHierarchy和TypeList,继承TypeList中所有类但是对于Tuple本身的操作完全没有定义~使用起来还是不够方便的~我在原始基础上构造了我自己的EasyTuple,可以更好的支持域操作。而且实现了一个可对Tuple所有域进行某一操作的TupleOperator模板(比如可用一个输出模板实例化TupleOperator函数输出整个T
2008-12-04 16:14:00 573
Founders+At+Work+-+Stories+of+Startups+Early+Days.pdf
2010-05-14
erlang程序设计
2009-05-06
Pattern.Oriented.Software.Architecture.Volume.5
2008-10-23
Pattern.Oriented.Software.Architecture.Volume.4
2008-10-23
Pattern.Oriented.Software.Architecture.Volume.3
2008-10-23
Pattern.Oriented.Software.Architecture.Volume.2
2008-10-23
Pattern-Oriented Software Architecture.Volume 1
2008-10-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人