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.
because "count" and "6 - n" (number of character need to add in string to full length 6 if n less than 6) both is number character to adding into string to satisfy, "count" will cover "6 - n" if "6 - n" less than "count", if we adding "count", we also satisfied "6 - n". And "6 - n" must be priority than "count" to satisfy "length must at least 6" in precondition.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
because "count" and "6 - n" (number of character need to add in string to full length 6 if n less than 6) both is number character to adding into string to satisfy, "count" will cover "6 - n" if "6 - n" less than "count", if we adding "count", we also satisfied "6 - n". And "6 - n" must be priority than "count" to satisfy "length must at least 6" in precondition.