Developer/Coding 7

[HackerRank] Compare the Triplets

Compare the Triplets Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty. 앨리스와 밥은 각각 해커랭크에 문제를 하나 만들었다. 한 리뷰어는 세 개의 카테코리(명확성, 독창성, 난이도)에 대해 1부터 100까지 점수를 매겨 채점한다. The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating ..

Developer/Coding 2020.08.06

[HackerRank] Simple Array Sum

Simple Array Sum Easy Problem Given an array of integers, find the sum of its elements. 주어진 정수 배열에 대해 요소들의 합을 구해라. Function Description Complete the simpleArraySum function in the editor below. It must return the sum of the array elements as an integer. 아래 에디터에 있는 함수 simpleArraySum 를 완성해라. 정수로 배열의 합을 리턴해야한다. simpleArraySum has the following parameter(s): ar: an array of integers Input Format The..

Developer/Coding 2020.08.06

[LeetCode] Tow Sum

1. Two Sum Easy Description Given an array of integers, return indices of the two numbers such that they add up to a specific target. 주어진 정수의 배열에서 두 숫자의 합산이 특정 목표 값인 두 숫자의 인덱스를 반환하세요. You may assume that each input would have exactly one solution, and you may not use the same element twice. 각 입력에 하나의 솔루션이 있다고 가정하고, 같은 요소를 두 번 사용할 수 없습니다. Example: Given nums = [2, 7, 11, 15], target = 9, Because ..

Developer/Coding 2020.08.04