프로그래머스/level 5

[프로그래머스] 방의 개수 (업데이트 중)

binaryJournalist 2021. 8. 5. 18:13
반응형

 

 

 

 

 

https://ziyuun.tistory.com/5

 

프로그래머스_방의개수_49190

문제 링크 조건 (0,0)에서 시작, 8방으로 이동 가능 arrows : 이동 방향을 담은 배열 (길이 1 ~ 100,000 | 범위 0 ~ 7) 방은 다른 방으로 둘러 싸여질 수 있음 접근 방법 최대 10만번 이동이 가능 => col, row 최

ziyuun.tistory.com

 

https://coding-insider.tistory.com/entry/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%A8%B8%EC%8A%A4-5-%EB%B0%A9%EC%9D%98-%EA%B0%9C%EC%88%98-CC-%E2%98%85%E2%98%85%E2%98%85

 

[프로그래머스 5] 방의 개수 (C/C++) (★★★)

#include #include #include #include using namespace std; int solution(vector  arrows) {     int roomCnt = 0;     map , int> vertex_visited;     map , pair >, int> edge_visite..

coding-insider.tistory.com

 

 

https://yabmoons.tistory.com/606

 

[ 프로그래머스 방의 개수 (Lv5) ] (C++)

프로그래머스의 방의 갯수(Lv5) 문제이다. [ 문제풀이 ] 주어진 방향대로 선을 그었을 때, 만들어 진 방의 갯수를 return 해야 하는 문제이다. 생각보다 문제가 단순해 보이지만, 보이지 않는 함정

yabmoons.tistory.com

 

반응형