Coder Social home page Coder Social logo

baekjoon's Introduction

Baekjoon Online Judge

백준 알고리즘 문제풀이 (파이썬)

백준 하면서 알게된 점

1. 같은 언어, 같은 코드여도 시간이 다를 수 있음

2. 메모리도 다를 수 있음

3. tuple unpacking을 적극적으로 활용하자

4. Python vs PyPy : Python은 느리고 메모리 사용 적음, PyPy는 빠르고 메모리 사용 많음

5. BFS 구현할 때 queue에서 popleft 하고 방문 여부를 확인하는 것이 아닌 append 하기 전에 확인해야 한다, 그렇지 않으면 중복하여 방문하게 된다 (여태까지 비효율적으로 구현했네...)

6. 5의 내용은 DFS도 마찬가지이다, 재귀를 이용해 구현할 때 방문 여부를 확인하고 방문할지 말지 판단해야 한다 (방문하고 나서 방문 여부를 확인하면 중복하여 방문하게 된다)

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.