알고리즘

[알고리즘] 이중배열, Arrays 정렬_프로그래머스문제(K번째수)

seulhasony 2024. 1. 25. 10:35

https://school.programmers.co.kr/learn/courses/30/lessons/42748

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

 

솔루션

https://gist.github.com/KimSeulHa/29cd76c1f17529e951c28955d82f09ba

 

배열안에서 숫자찾기,k번째수

배열안에서 숫자찾기,k번째수. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

중요메소드

1) Arrays.copyOfRange(array,from,to)

 - array: 사용되는 arr데이터

 - from: 추출하고자 하는 index

 - to: 추출하고자 하는 index