Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Recursive Sort Example

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.72 sec, absolute running time: 0.07 sec, cpu time: 0.03 sec, memory peak: 3 Mb, absolute service time: 0,8 sec 
latest |  history
Enter n: 
n = 7

Initial array = 24 74 4 95 54 45 79 
         Entering into recursiveSort:  n = 7Address of array = 0x219c030
            Entering into recursiveSort:  n = 6Address of array = 0x219c034
               Entering into recursiveSort:  n = 5Address of array = 0x219c038
                  Entering into recursiveSort:  n = 4Address of array = 0x219c03c
                     Entering into recursiveSort:  n = 3Address of array = 0x219c040
                        Entering into recursiveSort:  n = 2Address of array = 0x219c044
                           Entering into recursiveSort:  n = 1Address of array = 0x219c048
                           Returning from recursiveSort: n = 1
                        Returning from recursiveSort: n = 2
                     Returning from recursiveSort: n = 3
                  Returning from recursiveSort: n = 4
               Returning from recursiveSort: n = 5
            Returning from recursiveSort: n = 6
Sorted array = 4 24 45 54 74 79 95 

    
                
λ
.NET NoSQL database for rapid development