The HackerRank Interview Preparation Kit
-
Sherlock and the Valid String 해석 및 풀이The HackerRank Interview Preparation Kit 2020. 3. 8. 21:55
문제 : https://www.hackerrank.com/challenges/sherlock-and-valid-string/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=strings Sherlock and the Valid String | HackerRank Remove some characters from the string such that the new string's characters have the same frequency. www.hackerrank.com 원문 : Sherlock considers a string to be valid if all characters of t..
-
Count Triplets 해석 및 풀이The HackerRank Interview Preparation Kit 2020. 3. 8. 17:56
문제: https://www.hackerrank.com/challenges/count-triplets-1/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=dictionaries-hashmaps 불러오는 중입니다... 원문 : You are given an array and you need to find number of Triplets of indices (i, j, k) such that the elements at those indices are in geometric progression for a given common ratio r and i < j < k For example, ar..
-
Sock Merchant 해석 및 풀이The HackerRank Interview Preparation Kit 2020. 3. 7. 16:17
문제 : https://www.hackerrank.com/challenges/sock-merchant/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=warmup 원문 : John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. For example..