(Silently banging my head against the wall).
C# translation ready! Please review and approve.
fair enough, maybe it's just me.
I didn't knew you can straight up copy other kata's test cases, provided they test an entirely different things.
There's nothing in the description to suggest that different behavior is expected for duplicate characters.
Nice kata, but it's not quite clear from the description whether the entries may contain duplicates.
Yeah, you're right (I don't care it was 3 years ago :) )
In isolation using 96 is fine, but structuring it the way Kosmarik proposed is more extensible in the future (for example, if you wanted to extend the function to return a character's position relative to any other character, it'd be easier to implement that by just replacing 'a' with a function argument).
why would it be better? Every dev knows the ascii table and where to look it up in seconds and everyone who reads the solution instantly knows why to subtract exactly 96.
Your solution is much worse to read
Does it matter when you have to join the list to a string to perform "string comparison" for this case?
Is the comparison of two lists faster than the comparison of two strings?
Or are they considered the same?
Based on the test case: a is inclusive and b is exclusive,
but the description doesn't say anything about it.
^Is that so? I believe the kata rewards are consistent among all Kyu levels. I'm a 3 Kyu user but receive 6 points for this kata.
is there a name for this type of notation "["Right", "Left"][val(left) > val(right)]"