Since the longest period of consecutive logins occur from 2021-03-16 to 2021-03-18, the answer would be
START
END
LENGTH
2021-03-16
2021-03-18
3
2021-03-13
2021-03-13
1
The problem stems from needing to award badges for consecutive logins in order to reward good behavior as demonstrated by a Supahands labeler
Expected Solution
You are provided wit a solution and test placeholder file, change the extension to reflect the language of the script you are using
Your solution should be inside the solution file, and your test should be inside the test file
Call the seed.py from the your script in order to generate a data pipeline for the processing code
Create a separate unit test for your script file to test the various scenarios presented in your script
DO NOT edit or amend the seed.py file
Include a separate readme in the form of a README.txt if additional instructions are required to get your solution running
Your solution should follow best practices such as DRY, KISS, YAGNI, SOLID etc.
IMPORTANT Your solution should consists of a solution file, a unit test file and a README.txt if necessary
Your solution will be rated for cyclomatic complexity, code maintainability, adherence to best practices, elegance of solution, defensibility and performance
Solutions that do not follow the submission instructions WILL NOT be considered
Assessment Criteria
Submitted code will be assessed based on the following criteria
Cyclomatic complexity
Maintainability index
Best practices
Elegance of solution
Defensibility of code
Optimization
Outputs
Our test script expects a stdout of the following format