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.
Yes it would have been memory efficient and less time consuming but as this passes all test cases so have not made other effort,
but it should be good programming practise to use StringBuffer instead. :)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Text Editor
You are viewing a single comment's thread. Return to all comments →
Yes it would have been memory efficient and less time consuming but as this passes all test cases so have not made other effort, but it should be good programming practise to use StringBuffer instead. :)