python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Reversing the order of a MatchCollection from regex?
I'm wanting to get matches from a string in regex, then using MatchCollection, reverse the order of matches.
Currently, I have the following:
var pattern = @"\(([^)]*)\)";
var results = Rege...
MattHodson
Votes: 0
Answers: 1
how to write an reversed words function in haskell
Write a program that reads a text in an endless loop, every single word
flipped over and then put back together as text. If the input is empty, the program should
abort, stop.
To do this, write a reve...
Trex
Votes: 0
Answers: 2
Reverse an Array without using reverse Function and other array the same array to be reverse all elements in the same array. size fix
// I am tring but cant do it
int[] arr = {1,3,4,2,5,6};
int n = arr.length,x = 0;
for (int i = 0 ; i < n; i++ ) {
x++;
System.out.println(arr[i]);
}

Ehsan Ullah
Votes: 0
Answers: 1
Reversing a String: Is this O(log n) time complexity?
I was doing this leetcode question which asks to reverse an integer. I wrote this method to convert int to string and reverse using divide-and-conquer recursion technique. I want to know is this O(log...
Avneesh Khanna
Votes: 0
Answers: 1