Giter Site home page Giter Site logo

Comments (1)

likejazz avatar likejazz commented on August 9, 2024

안녕하세요.

실무에서는 말씀하신대로 max value를 별도 변수에 보관한다던지 하는 방법으로 O(1)에 조회할 수 있습니다. 그러나 그렇게 하면 그 자료형은 BST가 아니라 BST를 기반으로 하는 어떤 복합 자료형이 되겠죠. 링크해주신 스택오버플로 글도 읽어봤는데요. 거기서도 Balanced BST로 modification을 언급하는 것이지, 책에서 얘기하는 것은 순수 BST의 경우이므로 조금 다른 경우라 할 수 있을거 같아요.

감사합니다.

from python-algorithm-interview.

Related Issues (20)

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.