Comments (1)
안녕하세요! 작성하신 소스코드도 정답입니다 :)
특정한 공간에서 이동하는 형태의 문제를 풀 때는 방향 벡터 목적으로 다음과 같은 리스트 변수를 이용하는 것이 일반적입니다.
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
하지만 상하좌우 문제는 로직이 매우 간단하기 때문에 질문자님이 적어주신 코드로도 정답 판정을 받을 수 있습니다. 잘 작성하셨습니다. 책에 있는 예제만으로는 독자분들이 정답 여부를 판단하기 어려워하는 것 같아, 스스로 채점해 볼 수 있도록 테스트 데이터 셋을 본 깃허브 저장소에 추가 할 예정입니다.
나동빈 드림
from python-for-coding-test.
Related Issues (20)
- 이코테 DFS 질문드리고 싶습니다.
- p.300 도시 분할 계획 java 풀이 관련 질문입니다. HOT 1
- 경쟁적 전염 질문
- 음료수 얼려먹기 실전문제 질문
- 퀵 정렬시 재귀함수 동작방식 질문 HOT 1
- [BFS 정의 구현 코드]
- 다익스트라 java코드 관련 문의 HOT 1
- 6-12.py 답안 예시 질문
- 다이나믹 프로그래밍 imporved recursive fibonacci
- 바닥공사 해설에 오류가 있는거 같아요 HOT 1
- p.92 큰 수의 법칙 reverse=True 사용안한 이유가 궁금합니다!
- p.339 Q15) 특정 거리의 도시 찾기 문제 백준 오류 HOT 2
- 개선된 다익스트라 자바 코드 질문
- 개선된 다익스트라 자바 코드 질문
- 구현 - 시각 파이썬 소스코드 오류 질문입니다. 113pg
- [그리디] 1이 될때까지 질문있습니다.
- part03. 21번 인구이동
- 시간복잡도 계산법 질문 드려요~
- 4단원 구현의 게임개발의 답안에 오류가 있다고 생각됩니다.
- chapter 13 dfs/bfs 문제 Q19 연산자 끼워 넣기 답안 수정이 필요합니다 (page 538).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-for-coding-test.