SHARE
TWEET

Untitled

a guest Mar 20th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # #//////////////////////////// PROBLEM STATEMENT //////////////////////////////
  3. # # Given three ints, a b c, print True if one of b or c is "close"           //
  4. # # (differing from a by at most 1), while the  other is "far", differing     //
  5. # # from both other values by 2 or more.                                      //
  6. # #                                                                           //
  7. # #   1 2 10 -> True                                                          //
  8. # #   1 2 3 -> False                                                          //
  9. # #   4 1 3 -> True                                                           //
  10. # #/////////////////////////////////////////////////////////////////////////////
RAW Paste Data
Top