An open API service indexing awesome lists of open source software.

https://github.com/jmestxr/switcheo-code-challenge


https://github.com/jmestxr/switcheo-code-challenge

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# switcheo-code-challenge

## Notes on Problem 1: Three ways to sum to n
- I assumed that n is a positive integer.

## Notes on Problem 2: Fancy Form
- You can try out Fancy Form [here](https://switcheo-code-challenge.vercel.app/).
- I did not manage to implement form validation and form submit due to time constraints. However, I have restricted the inputs to take in valid values:
- For ETH address, the max number of characters is 40 and can take in both numbers and letters.
- For Amount, only numbers are accepted. Case of leading zeros (e.g. inputting '0100' will display '100') is handled. The input is also pretty-formatted (e.g '1000000' is displayed as '1,000,000').
- For OTP, I assumed that only 4 numbers are accepted.

## Notes on Problem 5: Utility Contract
- I did not manage to attempt this problem yet due to time constraints. Apologies...