Skip to content

[지근영] Sprint12#168

Open
codes-gy wants to merge 3 commits into
codeit-bootcamp-nodejs:algorithm-지근영from
codes-gy:feature/gy/algorithm
Open

[지근영] Sprint12#168
codes-gy wants to merge 3 commits into
codeit-bootcamp-nodejs:algorithm-지근영from
codes-gy:feature/gy/algorithm

Conversation

@codes-gy
Copy link
Copy Markdown

요구사항

  • 자바스크립트로 정렬 알고리즘 구현하기

기본

  • 선택 정렬 (Selection sort)
    • 숫자형 배열을 파라미터로 받고, 해당 배열을 수정하도록 구현합니다.
  • 삽입 정렬 (Insertion sort)
    • 숫자형 배열을 파라미터로 받고, 해당 배열을 수정하도록 구현합니다.
  • 퀵 정렬 (Quick sort)
    • 숫자형 배열을 파라미터로 받고, 해당 배열을 수정하도록 구현합니다.
  • 병합 정렬 (Merge sort)
    • 숫자형 배열을 파라미터로 받고, 해당 배열을 수정하도록 구현합니다.

함수 예시

  • 해당 배열을 직접 수정하는 예시
const nums = [3, 1, 2];
console.log(nums); // [3, 1, 2];
selectionSort(nums);
console.log(nums); // [1, 2, 3]

주요 변경사항

스크린샷

선택 정렬

image

삽입 정렬

image

퀵 정렬

image

병합 정렬

image

멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@codes-gy codes-gy changed the title [spirnt12] 지근영 [지근영] Sprint12 May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant