• + 0 comments

    Here is my c++ solution, you can watch video explanation here : https://youtu.be/Qs9rxqfzTs8

    bool is_smart_number(int num) {
        int val = (int) sqrt(num);
        if(val * val == num)
            return true;
        return false;
    }