[Help] RyDeR's Quicksort Algorithm
#4

PHP код:
enum
    tempArrayEnum 
{
    
    
tempArraySort
};
new
    
tempArray[24][tempArrayEnum] = {
    
    
95372233751
};
SortDeepArray(tempArraytempArraySort, .order SORT_DESC); 
95, 3, 7, 2, 233, 75, 1, 0, 0, ...

Will become;

0, 0, 0, ..., 1, 2, 3, 7, 75, 95, 233

Loop through the array after you deep sort it, "continue" if "tempArraySort" == 0, this will give you your desired result.
Reply


Messages In This Thread
[Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 12.01.2019, 20:04
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 12.01.2019, 21:30
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 13.01.2019, 06:50
Re: [Help] RyDeR's Quicksort Algorithm - by d1git - 13.01.2019, 08:04
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 13.01.2019, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)