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.
Its kind of symmetric.
there will be 'n-1' characters left and right to the first characters.
In general, for m characters there will be 'm-1' seperations(here it is -).
so 1 + (n-2)X2 + (n-2)X2 = 4n-3
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Alphabet Rangoli
You are viewing a single comment's thread. Return to all comments →
Its kind of symmetric. there will be 'n-1' characters left and right to the first characters. In general, for m characters there will be 'm-1' seperations(here it is -).
so 1 + (n-2)X2 + (n-2)X2 = 4n-3