About 1,790,000 results
Open links in new tab
  1. Reverse a String using Stack - GeeksforGeeks

    Apr 4, 2025 · Follow the steps given below to reverse a string using stack. Create an empty stack. One by one push all characters of string to stack. One by one pop all characters from stack …

  2. Reverse a string using a stack data structure | Techie Delight

    Dec 1, 2021 · This post will discuss how to reverse a string using the stack data structure in C/C++, Java, and Python using explicit stack and call stack.

  3. Write a Program to Reverse a String Using Stack

    Write a C, C++ program to reverse a string using Stack data structure. In this question, A string is input by a user and our program will reverse a string using a Stack. Stack is an abstract data …

  4. Reverse a String using Stack - Naukri Code 360

    Mar 27, 2024 · To reverse a string using a stack in Java, first, create an empty stack of characters. Then, push each character of the original string onto the stack. Pop each character …

  5. Reverse String using Stack - CodeCrucks

    Mar 13, 2023 · This article describes how to reverse a string using a stack. There exist many algorithms to reverse the string. The idea is to generate a new stack that is empty, and then …

  6. Reverse a string using stack - LearnersBucket

    Apr 22, 2019 · Learn how to efficiently reverse a string using stack in javascript. Calculate how much time it will take to excute the program and its space complexity.

  7. Reverse String - Educative

    In Python, you can reverse a string very easily. For example, However, if you are required to reverse a string using a stack, you can make use of the following algorithm illustrated in the …

  8. Java Program to Reverse a String using Stack - GeeksforGeeks

    Oct 21, 2020 · Push the character one by one into the Stack of datatype character. Pop the character one by one from the Stack until the stack becomes empty. Add a popped element to …

  9. Reverse a String using Stack Data Structure - Java Guides

    In this article, we will discuss how to reverse a string using stack operations. This program uses stack operations to reverse a word (string). First, we push each character to the stack, then we …

  10. Reverse a String using a Stack | Stacks | PrepBytes Blog

    Sep 26, 2022 · The idea is to traverse the given string from left to right and push each character in the stack. Then, pop the characters from the stack one by one and append them to a new …

Refresh