About 6,490,000 results
Open links in new tab
  1. How do I reverse a string in Python? - Stack Overflow

    There is no built in reverse method for Python's str object. How can I reverse a string?

  2. c# - Best way to reverse a string - Stack Overflow

    Oct 23, 2008 · I've just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with this: public string Reverse(string text) { char[] cArray = text.ToCharArray(); string

  3. Reverse a string in Java - Stack Overflow

    3 One natural way to reverse a String is to use a StringTokenizer and a stack. Stack is a class that implements an easy-to-use last-in, first-out (LIFO) stack of objects.

  4. How do I reverse a list or loop over it backwards? - Stack Overflow

    How do I iterate over a list in reverse in Python? See also: How can I get a reversed copy of a list (avoid a separate statement when chaining a method after .reverse)?

  5. list - How can I reverse a Java 8 stream and generate a …

    Both end up storing the stream elements. I don't know of a way to reverse a stream without storing the elements. This first way stores the elements into an array and reads them out to a …

  6. What is the Simplest Way to Reverse an ArrayList?

    May 26, 2012 · The third option is to create a view in reversed order. This is a more complicated solution, and worthy of further reading/its own question. Guava's Lists#reverse method is a …

  7. How do I reverse an int array in Java? - Stack Overflow

    Jan 26, 2010 · I am trying to reverse an int array in Java. This method does not reverse the array.

  8. django - What is reverse ()? - Stack Overflow

    Jun 28, 2012 · Given a url pattern, Django uses url () to pick the right view and generate a page. That is, url--> view name. But sometimes, like when redirecting, you need to go in the reverse …

  9. Reverse an array in JavaScript without mutating the original array

    Array.prototype.reverse reverses the contents of an array in place (with mutation)... Is there a similarly simple strategy for reversing an array without altering the contents of the original array (

  10. Reverse a string without using string functions [duplicate]

    Aug 2, 2016 · 3 Use StringBuilder class or StringBuffer class they have already a method reverse() for reversing the string StringBuilder str = new StringBuilder("india"); …