Skip to content

iskim1018/hackerrank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Algorithm

implementation

algorithms/implementation/apple_orange.js
  • Between two Sets
  • A, B λ‘κ°œμ˜ μ§‘ν•©μ˜ μ›μ†Œλ“€μ— λŒ€ν•΄ μ•„λž˜μ˜ 쑰건을 λ§Œμ‘±ν•˜λŠ” x 값이 λͺ‡κ°œμΈμ§€λ₯Ό 좜λ ₯
  • A μ§‘ν•©μ˜ μ›μ†ŒλŠ” a1, a2, ... aN (μ΄ν•˜ an), B μ§‘ν•©μ˜ μ›μ†ŒλŠ” b1, b2, ... bM (μ΄ν•˜ bn)
  • x % an = 0, bn % x = 0을 λ§Œμ‘±ν•˜λŠ” x의 값은 λͺ‡κ°œμΈμ§€λ₯Ό 좜λ ₯
algorithms/implementation/between_two_sets.js
algorithms/implementation/bigger_is_greater.js

Sorting

algorithms/sorting/insertion1.js
algorithms/sorting/insertion2.js
algorithms/sorting/quick1.js
algorithms/sorting/quick2.js

Strings

  • Richie Rich
  • μ΅œμ†Œν•œμ˜ μˆ˜μ •μœΌλ‘œ μ•žλ’€κ°€ λ™μΌν•œ 숫자 μ‘°ν•©λ§Œλ“€κΈ°(μˆ˜μ •νšŸμˆ˜κ°€ λ™μΌν•˜λ©΄ κ°€μž₯큰수)
algorithms/strings/richie-rich.js
algorithms/strings/sherlock_and_anagrams.js

Data Structure

Arrays

  • Algorithmic Crush (Hard)
  • 1μ°¨ λ°°μ—΄μ˜ νŠΉμ • μΈλ±μŠ€μ— k값을 λ§μ…ˆν•œλ‹€κ³  ν• λ•Œ, 배열에 μžˆλŠ” μ΅œλŒ€κ°’μ„ κ΅¬ν•˜κΈ°
  • λ³΅μž‘λ„λ₯Ό O(N)의 ν˜•νƒœλ‘œ ν’€μ–΄μ•Ό ν•˜λŠ” 것이 관건
data_structre/arrays/algorithmic_crush.rb

About

hackerrank

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors