-
회문(Palindrome)Algorithm with C/BFS 2020. 8. 31. 07:46
1. 문제
문제는 아래에 정의되어 있다.
DFS로 만든 것을 BFS로 구현할 것이다.
https://designatedroom87.tistory.com/63?category=881035
회문(Palindrome)
1. 문제 We define a palindrome to be a sequence of characters that reads the same backward as it does forward. For example, “tacocat” and “12221” are palindromes, but, “tacocats” and “8675”..
designatedroom87.tistory.com
2. 자료 구조 정의
큐는 앞에서 만든 것을 이용한다.
그리고 큐에 저장할 정보는 탐색할 인덱스의 범위이다.
< Index.h >
아래는 큐의 헤더 파일이다.
< Queue.h >
3. 구현
4. 헤더 파일 & 소스 파일
common.h0.00MBIndex.h0.00MBmain.c0.00MBQueue.c0.00MBQueue.h0.00MB'Algorithm with C > BFS' 카테고리의 다른 글
마족 찾기 (0) 2020.09.09 숙직 선생님 (0) 2020.09.07 두더지 굴 (0) 2020.08.30