摘要: 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) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric(字母和数字) characters and ignoring cases. Given a string, determine if it i 阅读全文
posted @ 2019-04-02 17:14 IreneZh 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Implement a class Class with the following attributes and methods: A public attribute students which is a array of Student instances. A constructor wi 阅读全文
posted @ 2019-04-02 14:21 IreneZh 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Given a string, convert it to an integer. You may assume the string is a valid integer number that can be presented by a signed 32bit integer (-231 ~ 阅读全文
posted @ 2019-04-01 22:59 IreneZh 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Description Description Given an array of integers, remove the duplicate numbers in it. You should: Do it in place in the array. Move the unique numbe 阅读全文
posted @ 2019-04-01 15:01 IreneZh 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Given an array with couple of float numbers. Return the max value of them. Example Example 1: Input: [1.0, 2.1, -3.3] Output: 2.1 Explanation: return 阅读全文
posted @ 2019-04-01 12:03 IreneZh 阅读(140) 评论(0) 推荐(0) 编辑