Skip to content

assu10/codility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

75 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

codility

Source Naming

CyclicRotation : ๋‚ด๊ฐ€ ํ•ด๊ฒฐํ•œ ๊ฒƒ
CyclicRotationModify : ๊ฒ€์ƒ‰ํ•˜์—ฌ ์–ป์€ ํ•ด๊ฒฐ
CyclicRotationSecond : 2๋ฒˆ์งธ ๋‚ด๊ฐ€ ํ•ด๊ฒฐํ•œ ๊ฒƒ(๋‚˜์ค‘์—)
CyclicRotationSecondModify : ๊ฒ€์ƒ‰ํ•˜์—ฌ ์–ป์€ ํ•ด๊ฒฐ(๋‚˜์ค‘์—)

01 Iterations

  • BinaryGap (38 mins) - ์—ฐ์†๋œ 0์˜ ๊ฐฏ์ˆ˜

    https://app.codility.com/demo/results/trainingMA8RDH-CMV/ (100%)

      ์—ฐ์†๋˜๋Š” 0์˜ ์ตœ๋Œ€ ๊ฐฏ์ˆ˜ ๊ตฌํ•˜๋Š” ๋ฌธ์ œ
      ์ˆซ์ž๋ฅผ ์ด์ง„์ˆ˜๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฒ•
          Integer.toBinaryString(N)
    

02 Arrays

  • OddOccurrencesInArray (18 mins) - ํ™€์ˆ˜ ๊ฐœ์ธ ์ˆซ์ž

    https://app.codility.com/demo/results/trainingSSES8M-URY/ (100%)
    https://app.codility.com/demo/results/trainingFGTW3B-SWJ/ (100%)

      ์ง์„ ์ด๋ฃจ์ง€ ์•Š๋Š” ๊ฐ’ ์ฐพ๋Š” ๋ฌธ์ œ
      hashMap key๊ฐ’ ๊ฐ€์ ธ์˜ค๊ธฐ
          for (Map.Entry<Integer, Integer> entry : hMap.entrySet())
      ์ฒซ ๋ฒˆ์งธ ๋ฐฉ๋ฒ•๋„ 100% ์ด์ง€๋งŒ ๋ฐ˜๋ณต๋ฌธ์„ ๋‘ ๋ฒˆ ๋Œ๋ฆฌ์ง€ ์•Š๊ณ  ํ•œ๋ฒˆ์— ํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ๊ฐœ์„ 
    
  • CyclicRotation - ๋ฐฐ์—ด ์ด๋™

    https://app.codility.com/demo/results/trainingETGJVN-X3S/ (100%)

      ์ฒ˜์Œ๋ถ€ํ„ฐ ์ฐธ๊ณ .
      ์ˆ˜ํ•™์  ์ ‘๊ทผ ํ•„์š”
    

03 Time Complexity

04 Counting Elements

05 Prefix Sums

06 Sorting

07 Stacks and Queues

08 Leader

09 Maximum slice problem

10 Prime and Composite Numbers

11 -

12 Euclidean Algorithm

  • ChocolatesByNumbers - ์ตœ๋Œ€ ๊ณต์•ฝ์ˆ˜

    https://app.codility.com/demo/results/trainingKFZVE4-888/ (100%)

      ์ฒ˜์Œ๋ถ€ํ„ฐ ์ฐธ๊ณ 
      ์ตœ๋Œ€ ๊ณต์•ฝ์ˆ˜ ๊ตฌํ•ด์„œ N/์ตœ๋Œ€ ๊ณต์•ฝ์ˆ˜
    

13 -

14 -

15 Caterpillar Method

16 Greedy Algorithms

  • TieRopes (16 mins)

    https://app.codility.com/demo/results/trainingQKBWMK-MJB/ (12%)
    https://app.codility.com/demo/results/trainingUW5WNX-4JT/ (100%)

      ๋ฌถ์ธ ๋ฐง์ค„์˜ ๊ฐฏ์ˆ˜๋ฅผ ๋ฆฌํ„ดํ•˜๋Š” ๊ฒƒ์œผ๋กœ ์ž˜๋ชป ์ดํ•ดํ•จ.
      ์ตœ์ข…์ ์œผ๋กœ ๋‚˜๋ˆ ์ง„ ๋ฐง์ค„์˜ ๊ฐฏ์ˆ˜๋ฅผ ๋ฆฌํ„ดํ•˜๋Š” ๊ฒƒ์ด์—ˆ์Œ.
    
  • MaxNonoverlappingSegments

    https://app.codility.com/demo/results/trainingW3M8SP-JNY/ (100%)

      ์ฒ˜์Œ๋ถ€ํ„ฐ ์ฐธ๊ณ ํ•จ.
      A={1,3} / B={5,6} ์ธ ๊ฒฝ์šฐ ๊ฒน์น˜์ง€ ์•Š๋Š” ์„ธ๊ทธ๋จผํŠธ๊ฐ€ ์—†์œผ๋‹ˆ 0์„ ๋ฆฌํ„ดํ•ด์•ผ ํ•˜๋Š”๋ฐ
      int segCnt = 1; ์™œ ๊ธฐ๋ณธ์ ์œผ๋กœ 1์„ ๊น”๊ณ  ๊ฐ€๋Š”์ง€ ์ดํ•ด๊ฐ€ ์•ˆ๊ฐ.
    

90 Task from Indeed Prime 2015 challenge

92 Tasks from Indeed Prime 2016 College Coders challenge

99 Future training

About

codility

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages