All Questions
Tagged with clustering programming-challenge
4 questions
5
votes
1
answer
1k
views
Pole (Hackerrank)
Problem Description
Kevin was thinking about telephone poles and came up with an idea for a fun programming challenge. There are n telephone poles ascending a mountain and each pole has a weight and ...
10
votes
3
answers
560
views
Selecting kids for a Christmas play with similar heights
I am doing this problem on SPOJ:
My kid's kindergarten class is putting up a Christmas play. (I hope he gets the lead role.) The kids are all excited, but the teacher has a lot of work. She has ...
3
votes
0
answers
1k
views
Solving the Mining algorithm from HackerRank
I was working on this problem for a few hours last night and finally came up with a brute-force solution. The task is to report the minimum work necessary (sum of weight × distance) to relocate gold ...
4
votes
1
answer
130
views
"Similar Destinations" challenge
I am currently solving the Similar Destinations challenge on HackerRank and am in need of some assistance in the code optimization/performance department. The task is to take a list of up to 1000 ...