태그: hackerrank

HackerRank Mark and Toys

1. 문제 Mark and Jane are very happy after having their first child. Their son loves toys, so Mark wants to buy some. There are a number of different toys lying in front of him, tagged with their price

HackerRank 2d Array ds

1. 문제 1.1. Given a 2D Array, : 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 An hourglass in is a subset of values with indices falling in this pattern in 's graphical re

HackerRank Counting Valleys

1. 문제 An avid hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for every step it was noted if it was an uphill, , or a downhill, step. Hikes always start

HackerRank Repeated String

1. HackerRank Repeated String There is a string, , of lowercase English letters that is repeated infinitely many times. Given an integer, , find and print the number of letter a’s in the first lette

HackerRank Jumping on the clouds

1. 문제 There is a new mobile game that starts with consecutively numbered clouds. Some of the clouds are thunderheads and others are cumulus. The player can jump on any cumulus cloud having a number t

HackerRank Sales By Match

1. 문제 There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. Ex

HackerRank Grading Students

Grading Students 1. 문제 HackerLand University has the following grading policy: Every student receives a in the inclusive range from to . Any less than is a failing grade. Sam is a professor at th