https://github.com/blakek/sorted-squares
A silly project to test recursion in different languages
https://github.com/blakek/sorted-squares
Last synced: about 1 month ago
JSON representation
A silly project to test recursion in different languages
- Host: GitHub
- URL: https://github.com/blakek/sorted-squares
- Owner: blakek
- License: mit
- Created: 2020-06-25T20:29:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T17:29:01.000Z (about 5 years ago)
- Last Synced: 2025-02-22T00:27:40.858Z (over 1 year ago)
- Language: Go
- Size: 230 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SortedSquares
> A silly project to test recursion in different languages
Not the real purpose of this, but the problem that's solved is taking a sorted
list of integers and returning a sorted list of squared integers. It's not
_that_ tricky, but:
- if the first element is negative, its square can be larger than the last
element of the input
- `0` throws a wrench in some solutions
This was actually created to see what a solution may look like in different
languages. Each folder should be set up like a module and may contain several
implementations.