zero_shubham1

hackerrank problem

Oct 29th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Task
  2.  
  3. You are given a text of lines. The text contains && and || symbols.
  4. Your task is to modify :
  5.  
  6. && → and
  7. || → or
  8.  
  9. Both && and || should have space " " on both sides.
  10.  
  11. Input Format
  12.  
  13. First line contains integer, .
  14. Next lines contains the text.
  15.  
  16. Constraints
  17.  
  18.  
  19.  
  20. Neither && nor || occur in or of each line.
  21.  
  22. Output Format
  23.  
  24. Output the modified text.
Add Comment
Please, Sign In to add comment