It is time for a monthly challenge! GDSC @ Conestoga is conducting a monthly challenge where you will be working on a data structure or data algorithm coding question.
Function Signature:
def getFactors(self, n: int) -> List[List[int]]:
// your code goes here
Sample Input:
n = 12
Sample Output:
List = [ [2,6], [3,4], [2,2,3] ]
*factors should be in the range [2,n-1].
You can submit your solution here (put your code on your public Github repo): Monthly Challenge Submission Link. Your solution will be evaluated by the time and space complexity, and the winners will be announced at the end of the month. You will get additional points for writing tests for your code.
Any questions? Reach out to GDSC Lead (Oleksandr Levinskyi) on Discord.
We are looking forward to receiving your submissions!
Thank you,
Conestoga GDSC Team
GDSC Lead
Mentor
Executive Lead
Executive Lead
SMART Center
Executive Lead
Executive Lead