6 kyu
Car Number Plate Calculator
832 of 1,554W_2004
Loading description...
Algorithms
Logic
Mathematics
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
The parameter type in Crystal should be defined so that it is not
Int32 | String
It's kata so good. But i think that it's not 6ky, rather ~5ky Only my opinion
Thanks, glad you liked it.
True, depending on the approach it might feel harder than 6kyu.
One of the best kata's I ever did
Thanks! Glad you enjoyed. Good solution btw.
This comment has been hidden.
Hi, I predict what the issue is and based on that I did a minor fix to the tests. Try it again and if it doesn't work, drop your code in here (and use a spoiler flag) - I'll deal with it in details. Thx for pointing this out anyways.
Hi, fixed. All test passed. Btw, ty for this Kata))
np, glad you enjoyed.
Something wrong with ruby tests: https://imgur.com/a/FcKQtjA
Fixed. Should've not used for in ruby - didn't really consider it at that time, but realized now it was a mistake. Guess my approach was too pythonic. Used the more native .each instead.
Anyways, thanks for pointing it out.
This comment has been hidden.
Fixed
RISC-V translation Kumited - please accept :-D
Approved! Thanks for your contribution;
C translation
Approved;
Thanks for the translation!
This comment has been hidden.
This comment has been hidden.
my pleasure. thank you for an interesting kata, mate:) keep it up
Glad you enjoyed!
I used to play around with predicting number plates (mathematically) when I was a kid, figured I would bring this idea out "into the world" :)
thumbs up!
nice kata, the math is mathing with this one
Thanks!
Glad you like it;
Go translation
3xThanks
D translation
2xThanks
.
Rust translation
Had to experiment with each translation, all approved;
Thanks!
This comment has been hidden.
This comment has been hidden.
hmmm... yeah, seems i missed this one.
All fixed now.
Thanks for pointing that out :)
Dear creator, thank you very much for this Kata. I had to create 3 versions before it was fast enough and the final version was dramatically different than the first!
I'm glad you figured the final method! I like your curent solution)). And btw weren't you trying to generate all the possible versions of the number plates and find the right one by index, at first ? Good luck in the future katas anyways.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This beta has turned into a kata. Thanks to everyone who helped and participated.
In Sweden we rarely use the letter 'w', so I struggled a little at first while expecting the base to be 25 instead of 26.
It would have helped me if the alphabet was provided in the Kata :-D
Good idea. I changed the setup of the initial solution. It now provides the full alphabet;)
Sample tests are still using old test framework.
done
This comment has been hidden.
Python 3.8 should be enabled.
It is already enabled.
it is.
There should be a lot more random tests than 20.
.
if there will be more random tests, people with long lousy code's tests will get timed out. Because codewars only alows a maximum of 12 seconds when running the tests.
Old
test.it
is still used in the random tests.This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
done
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
yes but with a small twist
This comment has been hidden.