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

Watchers

Forks

Releases

No releases published

Packages

No packages published