Hackerrank — Beautiful 3 Set

Revision en1, by RazvanD, 2016-08-29 11:15:26

https://www.hackerrank.com/contests/world-codesprint-6/challenges/beautiful-3-set

I can't quite understand how to solve the problem. Although there is an editorial it's really poorly written as it only explains how to get an upperbound for the number of sets but it doesn't explain why that upperbound is achievable and how to come up with a formula for the numbers that satisfy the bound.

Thanks in advance.

Tags math, hackerrank, world codesprint 6, bad editorial

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English RazvanD 2016-08-29 11:15:26 444 Initial revision (published)