Machine is Learning

  • 홈
  • 태그

코딩테스트/C 1

[Hy-코딩테스트] 잡다한 것 정리

1. 퀵소트 사용 방법 - 퀵소트에서 기본적으로 compare함수가 필요하다. 여기서 나오는 것은 오름차순이고, 내림차순으로 정렬하려면 부등호 반대로 쓰면 된다. int static upCompare(const void* first, const void* second){ if (*(int*)first > *(int*)second){ return 1; } else if (*(int*)first < *(int*)second){ return -1; } else{ return 0; } } - main에서 불러올 때는 이런 방식으로 사용한다. qsort(arr, sizeof(arr), sizeof(int), upCompare); 2. strlen - string 수 세기 strlen(string) 3. dp 풀이..

코딩테스트/C 2021.09.22
1
더보기
프로필사진

클라우드 엔지니어 https://github.com/sonnysorry?tab=repositories

  • 분류 전체보기 (38)
    • 딥러닝 (5)
      • Virtual Production (5)
    • 코딩테스트 (8)
      • C (1)
      • Python (6)
    • 논문읽기 (0)
      • NLP (0)
      • Computer Vision (0)
    • Linux (1)
    • System Engineering (1)
    • Cloud (1)
      • GCP (0)
      • AWS (1)
    • Python (2)
      • 파이썬 개발스킬 업그레이드 (1)
      • 코딩테스트 (1)
    • Web (10)
      • Golang (7)
      • JavaScript (3)
      • MongoDB (0)
      • Web 기본 (0)
    • 프로젝트 (1)
    • 일상 (6)

최근글과 인기글

  • 최근글
  • 인기글

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • github

티스토리툴바