摘要:
转:http://www.cnblogs.com/easonliu/p/3696135.html 分析:这个问题是google的面试题。由于一个字符串有很多种二叉表示法,貌似很难判断两个字符串是否可以做这样的变换。对付复杂问题的方法是从简单的特例来思考,从而找出规律。先考察简单情况:字符串长度为1: 阅读全文
摘要:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then l 阅读全文