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.
This....this code works and I still struggle to figure out what it does until I had to write it out on paper to compare with the logic of the equation as the equation requires 2^n.
After several tries and a few hours burn away I finally get it.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all comments →
This....this code works and I still struggle to figure out what it does until I had to write it out on paper to compare with the logic of the equation as the equation requires 2^n.
After several tries and a few hours burn away I finally get it.