format() would have been way easier... Anyway... now I know little about map() as well even though it was not asked here ^^ The map<String,int> in the description has confused me alot.
Problems with your code are not a kata issue.
Please see if troubleshootig FAQ is helpful: https://docs.codewars.com/training/troubleshooting/
This comment is hidden because it contains spoiler information about the solution
Who ever made swift must be kidding, you can just change the struct and cheat all the tests
Ha, yes, I only heard afterwards that it could not be changed, unfortunately.
Look at the approval date
What the reason to use integrated methods of hex parsing? LOL. Try to avoid using something like Int.parse()
PHP translation to be reviewed
Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
describe "<This message should describe the categories of test groups inside this block>" do
it "<A short message describing this test group>" do
expect(...).to eq(...) #Assertions
#Or Test.assert_equals(user_response, reference_response)
In its current state I would rate this as 7 kyu at most.
ranks cant be changed
i'm no computer science major, but this challenge seems pretty easy for a 5kyu rating. I'd give it a 6kyu at most. Perhaps modifying it so the trainee has to deal with shorthand, or bad input may help increase the complexity? It's still a fun little puzzle, but there are puzzles in the 6kyu range that are tougher than this.