摘要: 从今天开始努力刷题,用这个帖子来记录刷题的进度。也方便自己的寻找。 题号 题目 复习 1 Two Sum Y 2 Add Two Numbers Y 3 Longest Substring Without Repeating Characters Y 4 Median of Two Sorted A 阅读全文
posted @ 2020-04-06 05:42 codingEskimo 阅读(238) 评论(0) 推荐(0) 编辑

2022年1月19日

摘要: Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (F 阅读全文
posted @ 2022-01-19 11:55 codingEskimo 阅读(37) 评论(0) 推荐(0) 编辑

2022年1月17日

摘要: mplement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek 阅读全文
posted @ 2022-01-17 06:56 codingEskimo 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Implement a last-in-first-out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal stack (push, top, 阅读全文
posted @ 2022-01-17 06:18 codingEskimo 阅读(11) 评论(0) 推荐(0) 编辑

2022年1月16日

摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() initializes 阅读全文
posted @ 2022-01-16 08:04 codingEskimo 阅读(20) 评论(0) 推荐(0) 编辑

2022年1月12日

摘要: Given the head of a singly linked list and two integers left and right where left ⇐ right, reverse the nodes of the list from position left to positio 阅读全文
posted @ 2022-01-12 05:57 codingEskimo 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head. Example 阅读全文
posted @ 2022-01-12 04:04 codingEskimo 阅读(25) 评论(0) 推荐(0) 编辑

2022年1月9日

摘要: Given the root of a binary tree and an integer targetSum, return all root-to-leaf paths where the sum of the node values in the path equals targetSum. 阅读全文
posted @ 2022-01-09 02:04 codingEskimo 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the 阅读全文
posted @ 2022-01-09 01:49 codingEskimo 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: The left subtree of a node co 阅读全文
posted @ 2022-01-09 01:38 codingEskimo 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the lef 阅读全文
posted @ 2022-01-09 01:13 codingEskimo 阅读(19) 评论(0) 推荐(0) 编辑

导航