About 49,700 results
Open links in new tab
  1. Build an Array With Stack Operations - LeetCode

    Build an Array With Stack Operations - You are given an integer array target and an integer n. You have an empty stack with the two following operations: * "Push": pushes an integer to the top of the stack.

  2. Design a Stack With Increment Operation - LeetCode

    Design a Stack With Increment Operation - Design a stack that supports increment operations on its elements. Implement the CustomStack class: * CustomStack(int maxSize) Initializes the object with maxSize which is the maximum number of elements in the stack. * void push(int x) Adds x to the top of the stack if the stack has not reached the maxSize.

  3. Implement Stack using Queues - LeetCode

    Implement Stack using Queues - 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, pop, and empty). Implement the MyStack class: * void push(int x) Pushes element x to the top of the stack.

  4. Implement Queue using Stacks - LeetCode

    Implement Queue using Stacks - Implement 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, pop, and empty).

  5. Min Stack - LeetCode

    Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: * MinStack() initializes the stack object. * void push(int val) pushes the element val onto the stack. * void pop() removes the element on the top of the stack. * int top() gets the top element of the stack.

  6. Build an Array With Stack Operations - LeetCode

    Build an Array With Stack Operations - You are given an integer array target and an integer n. You have an empty stack with the two following operations: * "Push": pushes an integer to the top of the stack.

  7. Stack - LeetCode

    Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

  8. Implement Stack using Queues - LeetCode

    Can you solve this real interview question? Implement Stack using Queues - Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

  9. Implement Stack using Queues - LeetCode

    Implement Stack using Queues - 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, pop, and empty). Implement the MyStack class: * void push(int x) Pushes element x to the top of the stack.

  10. Design Circular Queue - LeetCode

    Design Circular Queue - Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle, and the last position is connected back to the first position to make a circle.

Refresh