Skip to content

Commit 359c4da

Browse files
committed
Added image, modify README
1 parent 9fb7779 commit 359c4da

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

Easy/twoNumberSum.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def twoNumberSum(array, targetSum):
1414

1515
return []
1616

17+
if __name__=='__main__':
18+
print(twoNumberSum([1,3,4,5], 7))
19+
1720
# O(N^2) time, O(1) space
1821
# run two for loops and compare every pair to see if it matches.
1922

Images/demo.PNG

58.5 KB
Loading

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# algo-expert
1+
# :star: algo-expert
22

33
![AlgoExpert cover image](https://github.com/das-jishu/algoexpert-data-structures-algorithms/blob/master/Images/algo-expert-cover.png?raw=true)
44

@@ -16,21 +16,35 @@ The solutions are provided in Python.
1616

1717
**Questions:**
1818
You can get the questions here: [AlgoExpert Questions](https://imgur.com/a/p9Phdft)
19+
<br/>
1920
The questions are not ordered so you might need to search for a bit.
2021

2122
#
2223

23-
#### HOW TO
24+
### :zap: HOW TO
2425

2526
You can visit this page and download the latest Python release version: [Install Python](https://www.python.org/downloads/)
27+
<br/>
28+
After you complete the download and install, you can run any solution by writing a main providing the required inputs.
2629

27-
After you complete the download and install, you can run any solution by providing the required inputs.
30+
For example, in case of 'Two number sum' problem:
31+
```python
32+
if __name__=='__main__':
33+
print(twoNumberSum([1,3,4,5], 7))
34+
```
2835

29-
#### CONTRIBUTE, CONTRIBUTE, CONTRIBUTE!
36+
The code can be executed like this:
37+
```bash
38+
python easy/twoNumberSum.py
39+
```
3040

31-
This is not near to perfect. So please feel free to fork this repo an add any solution in different languages or test cases here. Let's help each other grow! `:grinning:`
41+
![Running a code on Python demo](https://github.com/das-jishu/algoexpert-data-structures-algorithms/blob/master/Images/demo.PNG?raw=true)
3242

33-
####EXTRAS
43+
### :zap: CONTRIBUTE, CONTRIBUTE, CONTRIBUTE!
44+
45+
This is not near to perfect. So please feel free to fork this repo an add any solution in different languages or test cases here. Let's help each other grow! :grinning:
46+
47+
### :zap: EXTRAS
3448

3549
I also have a collection of Leetcode questions that I keep growing. Feel free to visit and have a look. It has more than 200 questions + solutions and also basic concepts grouped by category.
3650

0 commit comments

Comments
 (0)