You are viewing a single comment's thread. Return to all comments →
C++11 (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
bool is_smart_number(int num) { int val = (int) sqrt(num); if(val * val == num) return true; return false; }
Seems like cookies are disabled on this browser, please enable them to open this website
Smart Number
You are viewing a single comment's thread. Return to all comments →
C++11 (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )