Wednesday, September 19, 2018

Zoo tail

  • Problem Description

    "Some new animals have arrived at the zoo. The zoo keeper is concerned that perhaps the animals do not have the right tails. To help her, you must correct the broken function to make sure that the second argument (tail), is the same as the last letter of the first argument (body) - otherwise the tail wouldn't fit!
    If the tail is right return true, else return false.
    The arguments will always be strings, and normal letters.
  • CODING ARENA
  • #include <stdio.h>
    int main()
    {
      printf("1");

    return 0;
    }
  • Test Case 1

    Input (stdin)
    Fox x
    
    
    Expected Output
    1
  • Test Case 2

    Input (stdin)
    Rhino o
    
    
    Expected Output
    1

No comments:

Post a Comment