Giter Club home page Giter Club logo

Comments (1)

ndb796 avatar ndb796 commented on August 12, 2024 2

안녕하세요! 작성하신 소스코드도 정답입니다 :)

특정한 공간에서 이동하는 형태의 문제를 풀 때는 방향 벡터 목적으로 다음과 같은 리스트 변수를 이용하는 것이 일반적입니다.

dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]

하지만 상하좌우 문제는 로직이 매우 간단하기 때문에 질문자님이 적어주신 코드로도 정답 판정을 받을 수 있습니다. 잘 작성하셨습니다. 책에 있는 예제만으로는 독자분들이 정답 여부를 판단하기 어려워하는 것 같아, 스스로 채점해 볼 수 있도록 테스트 데이터 셋을 본 깃허브 저장소에 추가 할 예정입니다.

나동빈 드림

from python-for-coding-test.

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.