摘要:
一、题目Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?二、解析这个还是一个回文题目,是在做完回文数字后做的。这题要判断... 阅读全文
摘要:
一、题目Write a function to find the longest common prefix string amongst an array of strings.二、解析题目是要找到一个str的list中,所有元素最长的公共前缀。例如she, shanghai, s的公共前缀是s。... 阅读全文