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
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Ruby
  3. Control Structures
  4. Ruby Control Structures - Case (Bonus Question)
  5. Discussions

Ruby Control Structures - Case (Bonus Question)

Problem
Submissions
Leaderboard
Discussions

Sort 79 Discussions, By:

recency

Please Login in order to post a comment

  • ebinaliyas5
    2 months ago+ 0 comments
    def identify_class(obj)
        # write your case control structure here
        case obj
            when Hacker
            puts  "It's a Hacker!"
            
            when Submission
            puts "It's a Submission!"
            
            when TestCase
            puts "It's a TestCase!"
            
            when Contest
            puts "It's a Contest!"
            
            else
            puts "It's an unknown model"
            
        end
    end
    
    0|
    Permalink
  • erummurtaza35
    2 months ago+ 0 comments

    https://bestbeardstraightener.com/

    0|
    Permalink
  • evelynnelson
    2 months ago+ 0 comments

    valuable concept . https://bit.ly/3gd4CnK

    0|
    Permalink
  • yashdeora98294
    3 months ago+ 0 comments

    here is problem solution in ruby programming - https://www.gyangav.com/2022/10/hackerrank-ruby-control-structures-case-bonus-question-solution.html

    0|
    Permalink
  • freshersworkjsob
    4 months ago+ 0 comments

    Here are the solution of HackerRank Ruby Control Structures Case (Bonus Question) Solution you can find All HackerRank Ruby Tutorial solutions in Single Post HackerRank Ruby Tutorial solutions

    0|
    Permalink
Load more conversations

Need Help?


View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy