본문 바로가기 메뉴 바로가기

하늘리 개발일기

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

하늘리 개발일기

검색하기 폼
  • 분류 전체보기 (138)
    • [코테] (133)
      • [Programmers Lv1] (43)
      • [Programmers Lv2] (19)
      • [GroomEdu] (61)
      • [Programmers] (0)
      • [YBM-sample] (10)
    • [Android] (1)
      • 이론 (0)
      • Kotlin (0)
      • JAVA (0)
    • [반성문] (1)
    • [클론코딩] (1)
    • [React-Node.js] (0)
  • 방명록

반장뽑기 (1)
[COS PRO 2급] 4차 8번_누가 반장이 될까요 (C/C++)

주어진 코드 #include #include #include int solution(int n, int votes[], int votes_len) { int arr[101] = { 0, }; for (int i = 0; i n / 2)//이때 n은 후보의 수 이다. return i; return -1; } int main() { int n1 = 3; int votes1[7] = { 1, 2, 1, 3, 1, 2, 1 }; int votes_len1 = 7; int ret1 = solution(n1, votes1, votes_len1); printf("sol..

[코테]/[GroomEdu] 2021. 5. 21. 22:50
이전 1 다음
이전 다음
공지사항
  • About Me
최근에 올라온 글
TAG
  • c언어 기출문제
  • YBM
  • 구름에듀 기출문제
  • groom
  • 자바
  • CosPro
  • 프로그래머스
  • 구름에듀
  • COSPRO 2급
  • C++
  • Java
  • C
  • 배열활용문제
  • cospro기출문제
  • c언어
  • Cos Pro
  • 알고리즘
  • YBM기출
  • 코스프로
  • cospro기출
  • programmers
  • lv2
  • 코딩테스트
  • 기출문제
  • groomedu
  • 배열
  • 연습문제
  • 구름 기출문제
  • 1급
  • lv1
more
«   2025/05   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바