Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
If copilot ever generated me code which contains
96
, I would disable it immediately :Dlet me take my foot out of my mouth...I forgot I wrote this comment, and in one month (I'm very new to coding) I have learned a TON. Seeing this notification and then what my comment was, I cringed at it. Forgive my ignorance y'all
...So copilot copied my work? I wrote this many years before copilot existed.
This code really looks great
the easiest one i ever done
ugh, and here I am trying to use math LOL
Note for the reader: sorting at each step is bad.
99% of the time, the number one solution is the EXACT solution (with some variables replaced) that Copilot suggested as most concise...forgive my skepticism
It passed all tests, so the problem is that the tests did not include all cases.
i think regex would have been better
There should be another choice: Best Practices, Clever, Genius. Genius|1 from me!
nice one bro! how can i do the same for any problem statements?
I'm surprised this works with negative numbers!
You are right. When I did these puzzles, years ago, I was following a style of brevity. The recursive call saves a line.
Does the recursive call to sudoku(P) actually make this any quicker than if you use the same logical code (as i did) and just update the puzzle and iterate through it again, with say, a while solved = False construction? It doesn't seem like the "recursion" in this case is actually cutting out much labor?
Loading more items...