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.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Java
  3. Advanced
  4. Can You Access?
  5. Discussions

Can You Access?

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • mrashidcit
    2 months ago+ 3 comments

    Although My Code is not mathing with the Editorial Code.

    But It's working on Java 8.

    //Write your code here
                Inner inner = new Inner();
                o = inner.new Private();
                String output = ((Inner.Private) o).powerof2(num);
                System.out.println(num + " is " + output);
    
    1|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy