We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Problem is that task had been given wrong. Let's say 8 char string.
floor = 2, ceiling = 3 and yeah, we have 2x3 chars = 6 maximum.
Just round as ussual sqrt and it start to work (and add 1 for columns if needed of course)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
Problem is that task had been given wrong. Let's say 8 char string. floor = 2, ceiling = 3 and yeah, we have 2x3 chars = 6 maximum. Just round as ussual sqrt and it start to work (and add 1 for columns if needed of course)