摘要: #2019.7.11: (这个问题也解决了如何复制一个单向链表) 我的思路: 创建一个新的链表,a、b指针分别指向两个链表,谁小就把那个节点的val给新的节点然后加到新的链表中,最后返回 我的代码: 阅读全文
posted @ 2019-07-11 23:40 Marvin_Tang 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #2019.5.23: leetcode_1: #844 Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace char 阅读全文
posted @ 2019-07-11 19:08 Marvin_Tang 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #2019.5.24: leetcode_2: #306(未解决)很沮丧,今天这个问题没能解决出来,部分网友说回溯法能做,这个高级的算法还没学,之后补充 题目:累加数 Additive number is a string whose digits can form additive sequenc 阅读全文
posted @ 2019-07-11 19:01 Marvin_Tang 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 2019.5.25: #1 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input 阅读全文
posted @ 2019-07-11 18:36 Marvin_Tang 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = [4,5,1,9], wh 阅读全文
posted @ 2019-07-11 18:13 Marvin_Tang 阅读(93) 评论(0) 推荐(0) 编辑