๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ”ฅ PS(Problem Solving) ๐Ÿ”ฅ/Codility

[Codility] Lesson 2 Arrays : CyclicRotation

by dar0m! 2021. 4. 2.

๋ฌธ์ œ

 

CyclicRotation coding task - Learn to Code - Codility

Rotate an array to the right by a given number of steps.

app.codility.com

 

๊ฒฐ๊ณผ

int[]

 

Test results - Codility

An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9,

app.codility.com

ArrayList๋กœ K๋ฒˆ ๋ฐ˜๋ณตํ•˜๋ฉด์„œ ๋งจ ๋’ค์˜ ์›์†Œ๋ฅผ ๋งจ ์•ž์˜ ์›์†Œ๋กœ ์ถ”๊ฐ€ํ•˜๋Š” ์ž‘์—…์„ ํ–ˆ๋˜ ์ฝ”๋“œ๋„ ์ฒจ๋ถ€.

app.codility.com/demo/results/trainingXWPEQM-UCA/

 

Test results - Codility

An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9,

app.codility.com

Deque๋กœ๋„ ๋˜‘๊ฐ™์ด ํ•  ์ˆ˜ ์žˆ๋‹ค.

app.codility.com/demo/results/training2KEAPR-TB2/

 

Test results - Codility

An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9,

app.codility.com

 

ํ’€์ด ์ฐธ๊ณ 

 

[Codility] CyclicRotation ๋ฌธ์ œ ํ’€์ด ๊ฒฐ๊ณผ

๋‘๋ฒˆ์งธ๋กœ ํ’€์–ด๋ณธ CyclicRotation ๋ฌธ์ œ.์ด๋ฒˆ์—” ์šด์ข‹๊ฒŒ๋„ ํ•œ ๋ฒˆ์— 100์ ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. https://co...

blog.naver.com

์ด ๋ถ„ ์ฝ”๋“œ๊ฐ€ ์ฒซ๋ฒˆ์งธ ํ’€์ด์™€ ๋กœ์ง์€ ๊ฐ™์ง€๋งŒ ์ฝ”๋“œ๊ฐ€ ๋” ๊น”๋”ํ•˜๋‹ค.

๋‚ด ๋จธ๋ฆฌ๋กœ๋Š” ์™œ ์•ˆ๋– ์˜ค๋ฅผ๊นŒ!

๋Œ“๊ธ€