Firetron’s BubbleSort

1 416 Views No Comments 2 years ago
  • Sorts a table using the bubble sorting algorithm.

    Custom Command Dependencies:
    None

    Test Code:

    if not Load('done', false) then
    
      local table = {8, 3, 45, 23, 7, 2}
    
      Log(table)
      Log('Unsorted Table:')
    
      CC_BubbleSort(table)
    
      Log(table)
      Log('Sorted Table:')
    
      Save('done', true)
    
    end
    HaasScript Code
    Sign in or Register to download for free
  • Earn Up to 2,000 $BMEX Tokens Promotion Type: contest Expires: July 31, 2023 Exclusive
    Fire up your trade bots and earn up to 2,000 $BMEX, $BTC, free subscriptions, and more.
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free