there is no reason for the "special rule" to be buried at the bottom of the description, after the I/O and examples. it makes it harder to see all rules at a glance; it forces one to have to scroll back to the beginning of the description
since Python 3.9, type hints such as List, Tuple or Set are deprecated in favor of using types directly, e.g. list[str] or tuple[int, int]. the initial code should be rewritten in consequence
Resolved (I am dim)
Never mind, it's because if The second A would need to be mareked as green rather than the first A marked as Yellow.
I seem to have coppied the guess coding wrong it should be: Yy-y-(-)yyy--y-yg, backets around added character.
Y = Yellow
G = Green
Which explains why it appears I've missed the M. Now ZINJANTHROPUSES could be a viable word.
Where is the M in ZINJANTHROPUSES?
Aren't you missing some letter there?
The guess:
SACRAMENTARIANS
Yy-y-yyy--y-yg
expects {'VOLUNTARINESSES', 'PENINSULARITIES', 'WITHDRAWNNESSES', 'PENETRATIVENESS'}
but I believe ZINJANTHROPUSES should also be included. I can't see why that would be exlcuded.
нет необходимости переписывать функцию, взгляните на литкод. оператор % тоже устарел, однако его продолжают использовать)
there is no reason for the "special rule" to be buried at the bottom of the description, after the I/O and examples. it makes it harder to see all rules at a glance; it forces one to have to scroll back to the beginning of the description
since Python 3.9, type hints such as
List
,Tuple
orSet
are deprecated in favor of using types directly, e.g.list[str]
ortuple[int, int]
. the initial code should be rewritten in consequencePreloaded func signature looks like leetcode
I accidently created a solution that does not always pass the random tests.
https://www.codewars.com/kata/reviews/6255e73cea4e7f004a79ed68/groups/66b37a14f8be82e8ded15341
The task is simple, but the logic of the code is hidden in an extremely unsuccessful presentation of special rules.
Update to python 3.11: https://www.codewars.com/kumite/648253876197bf26c5d4d7b2?sel=648253876197bf26c5d4d7b2
With "SACRAMENTARIANS" as the guessed word:
'REPEATABILITIES', 'ALLOTETRAPLOIDS'
both examples match the hint
('SACRAMENTARIANS', '-Y-YY-Y-Y--Y--G')
Why?
This is explicit. If you are not satisfied with it, make a concrete suggestion.
Loading more items...