摘要: 40. Implement Queue by Two Stacks As the title described, you should only use two stacks to implement a queue's actions. The queue should support push 阅读全文
posted @ 2019-04-03 22:19 IreneZh 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 423. Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brac 阅读全文
posted @ 2019-04-03 16:48 IreneZh 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 35. Reverse Linked List Reverse a linked list. Reverse a linked list. Reverse a linked list. Example Example1:For linked list 1->2->3, the reversed li 阅读全文
posted @ 2019-04-03 14:38 IreneZh 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 174. Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. Given a linked list, remove t 阅读全文
posted @ 2019-04-03 13:07 IreneZh 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Remove Linked List Elements Remove all elements from a linked list of integers that have value val. Remove all elements from a linked list of integers 阅读全文
posted @ 2019-04-03 12:05 IreneZh 阅读(129) 评论(0) 推荐(0) 编辑