Skip to content

Instantly share code, notes, and snippets.

@anantham
Created April 27, 2015 16:16
Show Gist options
  • Save anantham/f25193a57e35cfef4c03 to your computer and use it in GitHub Desktop.
Save anantham/f25193a57e35cfef4c03 to your computer and use it in GitHub Desktop.
HackerRank - cheatsheet
# Method - 1 BRUTE FORCE
n = int(raw_input()) # number of test cases
N = [] # list of N's
for i in range(n):
N.append(int(raw_input()))
@anantham
Copy link
Author

Used in almost all problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment