![]() |
VOOZH | about |
Generating Random Sorted Arrays We store the random array elements in an array and then sort it and print it.
Time complexity : O(N log N)
Space complexity : O(N)
Generating Random Palindromes
Time complexity : O(N)
Space complexity : O(N)
If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks. References : - http://spojtoolkit.com/TestCaseGenerator/ Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.