diff --git a/BeginnersFriendlyRepositories.md b/BeginnersFriendlyRepositories.md index 60ce126..51cfc6e 100644 --- a/BeginnersFriendlyRepositories.md +++ b/BeginnersFriendlyRepositories.md @@ -28,6 +28,10 @@ If you know any good repository for beginners, feel free to add it to this table | OpenSauce | [Link](https://github.com/TechnoBlogger14o3/OpenSauce) | Multiple Languages, DSA, Algorithms | | Awesome Lists | [Link](https://github.com/sindresorhus/awesome) | Markdown, Documentation | | 30 Seconds of Code | [Link](https://github.com/30-seconds/30-seconds-of-code) | JavaScript, TypeScript, Python | +| Exercism | [Link](https://github.com/exercism/exercism) | Ruby, JavaScript, Multiple Languages | +| TheAlgorithms | [Link](https://github.com/TheAlgorithms) | Multiple Languages, Algorithms | +| TensorFlow Examples | [Link](https://github.com/tensorflow/examples) | Python, Machine Learning | +| Open Source Game Development | [Link](https://github.com/godotengine/godot) | C++, GDScript | diff --git a/first_last_digit.py/first last b/first_last_digit.py/first last new file mode 100644 index 0000000..ad4131a --- /dev/null +++ b/first_last_digit.py/first last @@ -0,0 +1,11 @@ +def swap_first_last(num): + last = num % 10 + n = num + pow10 = 1 + while n >= 10: + n //= 10 + pow10 *= 10 + first = n + middle = (num % pow10) // 10 + result = last * pow10 + middle * 10 + first + return result