본문 바로가기

웅재의 코딩세상

검색하기
웅재의 코딩세상
프로필사진 웅드

  • 분류 전체보기 (304)
    • 코딩테스트 (226)
      • c++ (17)
      • 프로그래머스 - LV 0 (165)
      • 프로그래머스 - LV 1 (44)
      • 프로그래머스 - LV 2 (0)
    • android 개발 (12)
      • android 이론(flutter) (5)
      • android 실습(flutter) (7)
    • 개념 (51)
      • c++ (18)
      • 자료구조 (17)
      • 알고리즘 (14)
      • cloud (2)
    • 프로젝트 (13)
      • 휘봉고 멘토링 (2)
      • 졸업작품 프로젝트 (5)
      • AI Deep Voice lab (2)
      • 제18회 임베디드 SW 경진대회 (4)
    • AI보안연구센터 연구원 (0)
      • 논문 (0)
Guestbook
Notice
Recent Posts
Today
Total
«   2025/09   »
일 월 화 수 목 금 토
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
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Linear Search (1)

웅재의 코딩세상

선형 검색(Linear Search)

배열의 각 요소를 처음부터 끝까지 순차적으로 탐색하여 일치하는지 판단하는 방법이다. 선형 검색의 종료 조건 검색할 값을 발견한 경우 배열 끝까지 검색해도 검색할 값을 찾지 못한 경우 simple linked list로 구현하기 // 연결 리스트의 노드를 나타내는 구조체의 정의 struct Node { int data; struct Node* next; } // 연결 리스트에 노드를 추가하는 함수 struct Node* insertNode(struct Node* head, int data){ struct Node* new_node = (struct Node*)malloc(sizeof(struct Node)); new_node -> data = data; new_node -> next = NULL; if(h..

개념/알고리즘 2023. 12. 1. 16:37
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바