본문 바로가기

초고교급 희망

검색하기
초고교급 희망
프로필사진 연모링

  • 분류 전체보기 (53)
    • Algorithm (22)
      • Baekjoon (14)
      • Programmers (5)
    • Game (23)
      • Unity (6)
      • C# (4)
      • 개발 일지 (9)
      • Unreal (4)
    • Android (1)
    • Diary (2)
    • Book (2)
    • Operating System (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • 유니티
  • BFS
  • upper_bound
  • fsm
  • 시리얼라이제이션
  • lower_bound
  • 웅진씽크빅
  • c++
  • 알고리즘
  • binary_search
  • 개발일지
  • c#
  • 게임개발공모전
  • 안드로이드
  • 프로그래머스
  • 이득우
  • 구현
  • 인프런
  • 너비우선탐색
  • 게임개발
  • unreal
  • 언리얼
  • 운영체제
  • 백준
  • unity
  • DFS
  • 유한상태기계
  • 이분탐색
  • UI 자동화
  • 재귀
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록BFS (2)

초고교급 희망

[프로그래머스][C++] 게임 맵 최단거리

#include #include using namespace std; int solution(vector maps) { int n = maps.size(); int m = maps[0].size(); vector dist(n, vector(m, -1)); dist[0][0]= 1; queue q; q.push({0, 0}); int dx[4] = {-1, 0, 1, 0}; int dy[4] = {0, 1, 0, -1}; while(!q.empty()) { int x = q.front().first; int y = q.front().second; q.pop(); for(int i = 0; i = 0 &&..

Algorithm/Programmers 2023. 6. 3. 15:53
DFS (깊이 우선 탐색) vs BFS (너비 우선 탐색)

보호되어 있는 글입니다.

Algorithm 2023. 6. 2. 01:25
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바