Coder Social home page Coder Social logo

algorithmtutorprograms's People

Contributors

bibeknam avatar harris854 avatar jerryrwu avatar sihatafnan avatar upocek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

algorithmtutorprograms's Issues

Single letter variable use.

Single letter variable use. Your code is extremely hard to read due to the lack of self documenting variables.

Python3 print

There are two print statements that should have brackets for python3 on the splay_tree

RB Tree is leaning right

That's not a bug, I am just curious why it is the case.

int main() {
  RBTree bst;
  for (int i = 0; i < 31; i++) {
      bst.insert(i);
  }
  bst.prettyPrint();

  return 0;
}

produces a tree without any violations but at the other time it isn't really balanced.

R----7(BLACK)                                  
     L----3(BLACK)                             
     |    L----1(BLACK)                        
     |    |    L----0(BLACK)                   
     |    |    R----2(BLACK)                   
     |    R----5(BLACK)                        
     |         L----4(BLACK)                   
     |         R----6(BLACK)                   
     R----15(RED)                              
          L----11(BLACK)                       
          |    L----9(BLACK)                   
          |    |    L----8(BLACK)              
          |    |    R----10(BLACK)             
          |    R----13(BLACK)                  
          |         L----12(BLACK)             
          |         R----14(BLACK)             
          R----19(BLACK)                       
               L----17(BLACK)                  
               |    L----16(BLACK)             
               |    R----18(BLACK)             
               R----23(RED)                    
                    L----21(BLACK)             
                    |    L----20(BLACK)        
                    |    R----22(BLACK)        
                    R----25(BLACK)             
                         L----24(BLACK)        
                         R----27(RED)          
                              L----26(BLACK)   
                              R----29(BLACK)   
                                   L----28(RED)
                                   R----30(RED)

I stumbled upon playing with my own implementation and just looked around for something else to compare with.

What is the license on this code?

I poked around a bit and couldn't find a license statement on the code here or at the main website. Each file should have a license statement as well as a master license at the top of the repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.