깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/4-counting_elements/missing_integer/ MissingInteger coding task - Learn to Code - Codility Find the smallest positive integer that does not occur in a given sequence. app.codility.com - N개의 정수로 이루어진 배열 A가 주어짐 - A에 존재하지 않는 가장 작은 양의 정수(0보다 큰 정수) return - A = [1, 3, 6, 4, 1, 2]인 경우, 함수는 ..
Number.MAX_SAFE_INTEGER Number.MAX_SAFE_INTEGER 상수는 Javascript에서 안전한 최대 정수 값을 나타냅니다. 사용 방법 //Number.MAX_SAFE_INTEGER const max = Number.MAX_SAFE_INTEGER;// 9007199254740991 Number.MIN_SAFE_INTEGER Number.MIN_SAFE_INTEGER 상수는 Javascript에서 안전한 최소 정수 값을 나타냅니다. 사용 방법 //Number.MIN_SAFE_INTEGER const min = Number.MIN_SAFE_INTEGER;// -9007199254740991 참고 사이트 Javascript | MDN - Number.MAX_SAFE_INTEGER J..
Math.abs Math.abs() 함수는 주어진 숫자의 절대값을 반환합니다. 사용 방법 기본 사용 방법은 다음과 같습니다. //Math.abs(숫자); Math.abs(5); // 5 Math.abs(-5); // 5 Math.abs([2]); // 2 빈 객체, 하나 이상의 요소를 가진 배열, 숫자가 아닌 문자열, undefined나 빈 매개변수를 받으면 NaN을 반환합니다. //Math.abs(숫자); Math.abs(); // NaN Math.abs({}); // NaN Math.abs([1,2]); // NaN Math.abs('string'); // NaN null, 빈 문자열이나 빈 배열을 제공하면 0을 반환합니다. //Math.abs(숫자); Math.abs(null); // 0 Math...
깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/3-time_complexity/tape_equilibrium/ TapeEquilibrium coding task - Learn to Code - Codility Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|. app.codility.com - N 개의 정수로 구성된 비어 있지 않은 배열 A - A[N] : 테이프의 숫자 - P : 테이프를 두 개로 나눌 위치 (0 배열의 전체 합이 0이 되는 경우, 두 부분의 차이 절대값이 제대로 ..
깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/5-prefix_sums/count_div/ CountDiv coding task - Learn to Code - Codility Compute number of integers divisible by k in range [a..b]. app.codility.com - 세 개의 정수 A, B, K가 주어지면 [A..B] 범위 내에서 K로 나눌 수 있는 정수의 수를 return - { i : A ≤ i ≤ B, i mod K = 0 } - 가장 효율적인 알고리즘 작성 - A, B : [0..2,000,000..
올림 Math.ceil(value) : value 값을 올림 처리하는 함수 const a = 3.0; const resultA = Math.ceil(a); // 3 const b = 3.2; const resultB = Math.ceil(b); // 4 const c = 3.5; const resultC = Math.ceil(c); // 4 const d = 3.9; const resultD = Math.ceil(d); // 4 내림 Math.floor(value) : value 값을 내림 처리하는 함수 const a = 3.0; const resultA = Math.floor(a); // 3 const b = 3.2; const resultB = Math.floor(b); // 3 const c = 3..
자료형 비교 자료형 설명 Boolean - 기본 자료형 - true와 false의 두 가지 값을 갖는 자료형 Number - 기본 자료형 - 64비트 형식의 IDDD 754 값이며 정수나 부동소수 값을 가지는 자료형 - 몇 가지 상징적인 값 존재 : NaN(숫자가 아님), +무한대(Number.MAX_VALUE로 확인), -무한대(Number.MIN_VALUE로 확인) String - 기본 자료형 - 문자열 값을 가지는 자료형 undefinded - 값을 할당하지 않은 변수의 값 null - 존재하지 않는 값을 가리키는 값 Object - 객체를 가지는 자료형 - 객체는 속성들을 담고 있는 가방(Collection)으로 볼 수 있음 - 대표적인 객체 : Array, Date 자료형 확인: typeof 변..
깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/4-counting_elements/max_counters/ MaxCounters coding task - Learn to Code - Codility Calculate the values of counters after applying all alternating operations: increase counter by 1; set value of all counters to current maximum. app.codility.com - 0으로 설정된 N 개의 카운터가 제공 - 카운터는 두 가지 작업이..
깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/2-arrays/odd_occurrences_in_array/ OddOccurrencesInArray coding task - Learn to Code - Codility Find value that occurs in odd number of elements. app.codility.com - A[N] 배열에는 홀수가 들어있으며 각 요소는 동일한 값을 가진 다른 요소(짝이 없는 요소여야함)와 쌍을 이룰 수 있음 - 짝을 이루지 않은 요소의 값 반환 - 가장 효율적인 알고리즘 작성 - A의 값 중 하나를 제..
깃허브 : https://github.com/miiingo/codility Task description 원본 사이트 : https://app.codility.com/programmers/lessons/3-time_complexity/frog_jmp/ FrogJmp coding task - Learn to Code - Codility Count minimal number of jumps from position X to Y. app.codility.com - 항상 일정한 거리 D만큼 씩만 점프 - X부터 Y까지 이동하는 데 걸리는 점프 횟수 구하기 Solution // you can write to stdout for debugging purposes, e.g. // console.log('this is..
- Total
- Today
- Yesterday
- Hyperledger Fabric v1.1
- Private Data
- ubuntu
- 코딩테스트
- codility
- 빅데이터 기초
- docker
- 빅데이터 교육
- 하이퍼레저 패브릭
- 하이퍼레저 인디
- 문제풀이
- 기초 of 기초 데이터 개념
- 하이퍼레저 페브릭
- 알고리즘
- Hyperledger Fabric
- 코딜리티
- 어서와 데이터는 처음이지
- 빅데이터
- ambrosus
- 블록체인
- DOCs
- 블록 체인
- javascript
- 암브로셔스
- 빅데이터 강의
- Blockchain
- Hyperledger Fabric v1.2
- 직딩잇템
- Hyperledger Indy
- 코테
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |