About 1,840,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. Java Coding Challenge - Reverse a String using Stack - Java Guides

    In this blog post, we will discuss how to reverse a string using a stack in Java. We will walk through the implementation using a utility class Stacks, along with code snippets to illustrate …

  7. 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.

  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 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 …

  10. 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 …

Refresh