-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from godspeed5/master
2 problems solved and Readme updated in reference to issue #9
- Loading branch information
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Algorithms | ||
|
||
Xor-Sequence Solved in Python | ||
|
||
Solve Me First solved in Python | ||
- [Diagonal Difference](https://github.com/swapnanildutta/Hackerrank-Codes/blob/master/Algorithms/Diagonal%20Difference.js) | ||
- Greedy | ||
- Greedy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# https://www.hackerrank.com/challenges/solve-me-first/problem | ||
# Complete the function solveMeFirst to compute the sum of two integers. | ||
|
||
# Function prototype: | ||
|
||
# int solveMeFirst(int a, int b); | ||
|
||
# where, | ||
|
||
# a is the first integer input. | ||
# b is the second integer input | ||
# Return values | ||
|
||
# sum of the above two integers | ||
# Sample Input | ||
|
||
# a = 2 | ||
# b = 3 | ||
# Sample Output | ||
|
||
# 5 | ||
def solveMeFirst(a,b): | ||
return a+b | ||
# Hint: Type return a+b below | ||
|
||
|
||
num1 = int(input()) | ||
num2 = int(input()) | ||
res = solveMeFirst(num1,num2) | ||
print(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters