摘要: 题意: Given a linked list, remove the nth node from the end of list and return its head. For example, 分析:题目虽然是easy,但是用one pass做起来还是包含几个链表常用的手法的,有参考价值; 链 阅读全文
posted @ 2016-08-05 22:20 wangxiaobao1114 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 题意: Write a function to find the longest common prefix string amongst an array of strings. (Easy) 这两天实验室项目太忙了, 老板各种活,只能挑着先水几道easy题,这两个题是昨天做的没来得及写总结。 分 阅读全文
posted @ 2016-08-05 22:14 wangxiaobao1114 阅读(170) 评论(0) 推荐(0) 编辑