SharpSerac

Last active yesterday

  1. last week
    Thu Jun 14 19:49:42 2018
    SharpSerac started the conversation Efficient Code Thread.

    i don't know how many coders we got on the forums but i wrote a pretty efficient sorting algorithm that i think is the best out there due to the sheer versatility and usability it has.

    in the code block you'll see it's algorithm then an example, you could copy and paste it into an online python 3 interpreter and it'll work for ya and it'll tell you the run time

    show me your efficient code guys, doesn't have to be sorting but just anything you're really really proud of that you wrote well

    import random
    import time
    
    #only brainlets write inefficient sorting algorithms
    # this sorting algorithm has an efficiency of O(log(n)) prove me wrong
    # >>>protip: you can't
    #            ,+@;                  
    #      .@@@@@@@#                   
    #     .@@@@@@@#                    
    #    `@@@@@@@@@;                   
    #   .@@@@@@@@@@'#                  
    #  ;@@@@@@;:@#`,;;                 
    #  ``+  @@@@: ''+',                
    #    +  @'+#`; :,:@                
    #    ,   +,`` .' ';                
    #    ..  .#  ` ,  `                
    #    :@   :,:      ,               
    #    ,@     `      . +             
    #    .@     :; `  ,  @@@@+`        
    #     #     ` ,#    ,@@@@@@@@'     
    #             @@ .` #@@@@@@@++@    
    #            @@@'  ,@@@@@@+@;#'@   
    #          `@@@@@  :@@@@@@:@@@@':  
    #          @#'@@@' @@@@@@@@@@;@@@  
    #          @#,@@@@@@@@@@@@@@@#@@@: 
    #          @,.@@@@@@@@@@@@@@@@@@@@ 
    #         ,@@:@@@@@@@@@@@@@@@@@@@@ 
    #         @@@+@@@@@@@@@@@@@@@@@@@@.
    #         @@@#@@@@@@@@@@@@@@@@@@@@@
    #   `#    @@@#@@@@@@@@@@@@@@@@@@@@@
    #  ;: ,   @@@@@@@@@@@@@@@@@@@@@@@@@
    #   :   + @@@@@@@@@@@@@@@@@@@@@@@@@
    #     '  `;@@@@@@@@@@@@@@@@@@@@@@@@
    #      ..  '  @@@@@@@@@@@@#'+@@@@@@
    #        +  ,  #@@@@@@@@@@@@@@@@@@@
    #         `.#,  :@';:'@@@@;@'@@@@@@
    #          ,     `@@@:@@@@@#@:@@@@@
    
    start_time = time.time()
    def efficientSort(sort):
        temp = sort
        sortedbool = False
        while not sortedbool:
            print(temp)
            var1 = random.randint(0, len(temp)-1)
            while True:
                var2 = random.randint(0, len(temp)-1)
                if var1 != var2:
                    break
            temp1 = temp[var1]
            temp[var1] = temp[var2]
            temp[var2] = temp1
            sortedbool = True
            for i in range(0, len(temp)-1):
                if temp[i] > temp[i+1]:
                    sortedbool = False
            
    
    sort = [7,6,5,4,3,2,1,0]
    efficientSort(sort)
    print("Runtime: ", time.time() - start_time)
  2. Thu Jun 14 19:37:43 2018
    SharpSerac posted in Your Best Redstone creation.

    @Inyashi do it pls

    Soon

  3. Thu Jun 14 19:33:08 2018
    SharpSerac posted in Your Best Redstone creation.

    @deyahruhd I bet it's just as efficient as your sorting algorithm

    It's actually possible to make a sorting system exactly like my efficientSort algorithm

  4. Thu Jun 14 15:35:28 2018
    SharpSerac posted in Poll Results Are In.

    @sknup 82.8% of the server is wrong

    Your builds are gonna get moved to the new map anyways so what are you complaining about xd

  5. Thu Jun 14 02:13:00 2018
    SharpSerac posted in Your Best Redstone creation.

    my one of a kind ultra efficient item sorter

  6. Tue Jun 12 01:07:21 2018
    SharpSerac posted in iwarriiori's renovation services.

    @iwarriiori I'm sorry, I <3 you @Tekk42
    -image-
    -image-
    -image-
    -image-
    -image-
    -image-

    yikes

  7. 2 weeks ago
    Sat Jun 2 19:17:06 2018
    SharpSerac posted in Word Association.

    diarrhea

  8. Sat Jun 2 07:11:49 2018
    SharpSerac posted in iwarriiori's renovation services.

    @Inyashi i hate u

    <3

  9. Sat Jun 2 07:08:43 2018
    SharpSerac posted in Word Association.

    equivalent exchange

  10. Sat Jun 2 07:06:55 2018
    SharpSerac posted in iwarriiori's renovation services.

    @Inyashi laugh in english pls

    jajajajajaja

View more