Given a binary tree, check whether it is a
mirror of itself (ie, symmetric around its center).For example, this binary tree
is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-05-09 09:28:18
阅读次数:
253
.closest( selector )
Description: For
each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tre...
分类:
Web程序 时间:
2014-05-07 15:07:34
阅读次数:
380
这两道题,大同小异。
我都是用BFS,在遍历的过程,判断结构是否相同/对称,值是否相同。下面是AC代码: 1 /** 2 * Given a binary tree, check
whether it is a mirror of itself (ie, symmetric aroun...
分类:
其他好文 时间:
2014-05-05 09:48:26
阅读次数:
401
RecursionIt is legal for one function to call
another; it is also legal for a function to call itself. It may not be obvious
why what is a good thing,...
分类:
其他好文 时间:
2014-05-01 18:40:44
阅读次数:
302
ASP.NET Web Pages framework examples of the
Database helper do not include calls to Close or Dispose because the framework
itself is designed to call ...
分类:
数据库 时间:
2014-04-30 14:08:51
阅读次数:
629
Page 30Perceptual blocks are obstacles that
prevent the problem-solver from clearly perceiving either the problem itself or
the information needed to ...
分类:
其他好文 时间:
2014-04-28 00:54:37
阅读次数:
403