본문 바로가기

SISS/HackerRank(C)

[Sorting] Correctness and the Loop Invariant

삽입 정렬을 이용하는 문제다. 저번 Insertion Sort-Part2 와 비슷하다. 한 가지 다른 점은, 이번에는 정렬을 마치고 난 후에 정렬한 결과를 출력하는 것이다.

'SISS > HackerRank(C)' 카테고리의 다른 글

[Implementation] Cut the Sticks  (0) 2020.11.22
[Implementation] Strange Counter  (0) 2020.11.22
[Implementation] Repeated String  (0) 2020.11.13
[Sorting] Insertion Sort - Part 2  (0) 2020.11.08
[Implementation] Counting Valleys  (0) 2020.11.08