摘要:
描述 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 分析 有序 阅读全文
摘要:
描述 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in 阅读全文
摘要:
描述 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or 1 if needle is not part of haystack. 分析 设置一个索引index,初始化为0,用 阅读全文