Web Rewrite

Technology Blog Where You Find Programming Tips and Tricks

Skip to content
Menu
  • Java
  • Data Structure
  • LeetCode
  • SOLID Principles
  • LLM Internals

Tag: Stack

Java

Valid Parentheses String

Posted on May 14, 2020October 29, 2020 by WebRewrite

Valid parentheses string with wildcard. Given a string containing only three types of characters: ‘(‘, ‘)’ and ‘*’.  Write a function to check whether this…

Share
Tweet
Share
0 Shares
Binary Tree

Reverse Level Order Traversal of a Binary Tree

Posted on November 2, 2019December 1, 2019 by WebRewrite

Given a binary tree, write a code to print its reverse level order traversal. For example: The reverse or bottom-up level order traversal of this…

Share
Tweet
Share
0 Shares
InterviewQuestions

Find the Maximum Element in a Stack in O(1)

Posted on May 25, 2019March 8, 2022 by WebRewrite

Find the maximum element in a stack in O(1) (constant time). Design a stack to get the maximum element from a stack in constant time.…

Share
Tweet
Share
0 Shares

Posts pagination

Previous Page Page 1 Page 2 Page 3 … Page 6 Next Page

Search

Support Me on PayPal

Programming Video Tutorials


Related Posts (YARPP)

  1. Find Second Largest Number in Array
  2. Check Balanced Parentheses in an Expression
  3. Sum of Digits of a Number using Recursion – Java Code
  4. Java Program to Count Number of Words in a String

Topics

  • Multithreading

  • Linked List

  • Binary Tree

  • Hash Map

  • Java

  • Queue

  • Stack

  • Binary Search

  • Programming

  • Sliding Window

  • Composer

  • Memcache

  • Javascript

  • Solid Principles

© Copyright 2026 – Web Rewrite
Wisteria Theme by WPFriendship ⋅ Powered by WordPress