초보 개발자

  • 홈
  • 태그
  • 방명록

백준 알고리즘/DFS, BFS 2

[백준 알고리즘] 4963번 섬의 개수 - C

#include #include #include #define MAX_SIZE 50 typedef struct GraphType { int landCount; int map[MAX_SIZE][MAX_SIZE]; bool visited[MAX_SIZE][MAX_SIZE]; }GraphType; int aroundW[8] = {-1, 0, 1, 1, 1, 0, -1, -1}; int aroundH[8] = {-1, -1, -1, 0, 1, 1, 1, 0}; int w, h; void init(GraphType *g) { g->landCount = 0; for(int i = 0; i visited[i][j] = false; } } } void insert_map(GraphType* g, int w, int h..

백준 알고리즘/DFS, BFS 2021.11.11

[백준 알고리즘] 1260번 DFS와 BFS - C

#include #include #include using namespace std; int graph[1001][1001] = {0}; int dfsVisited[1001] = {0}; int bfsVisited[1001] = {0}; void dfs(int v, int n) { dfsVisited[v] = 1; printf("%d ", v); for(int i = 1; i

백준 알고리즘/DFS, BFS 2021.11.11
이전
1
다음
더보기
프로필사진

초보 개발자

  • 분류 전체보기 (121)
    • Linux (10)
    • SPRING (3)
      • 기능개발 (1)
      • 설정 (1)
    • JAVA (16)
    • 개발일기 (21)
    • 개발일지(캡스톤) (2)
      • DB Architecture (2)
    • git (3)
    • 백준 알고리즘 (17)
      • 이진탐색 (5)
      • 정렬 (5)
      • 최단경로 (0)
      • 스택 (2)
      • 최소스패닝트리 (1)
      • DFS, BFS (2)
      • 큐 (1)
      • 해시 (1)
    • 알고리즘 (8)
      • 트리 (4)
      • 정렬 (1)
      • 해시 (2)
      • 탐색 (1)
    • DB 이야기 (4)
    • 개발일지(에브리타임) (10)
      • 기능개발 (2)
      • DB Architecture (1)
      • 에브리타임UI (7)
    • 오류일지 (7)
    • 지식 (9)
    • visual studio winform (6)
    • 개발일지(카카오톡) (0)
    • JS (2)
    • API 문서화 (1)
      • membership (1)
    • 디자인 패턴 (2)
      • 생성 (1)
      • 구조 (0)
      • 행위 (1)

Tag

자바, 자료구조, 인터프리터 언어, O(logN), BCrypt, 백준알고리즘, CallByValue, Callbyreference, 정렬, 양방향 암호화, 이진탐색, 알고리즘, 샘플데이터, 컴파일 언어, 코딩테스트, Java의 특징, 백준, 파이썬, 단방향 암호화, Java,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바