It seems the codewars wikipedia may have changed again? - 11/04/20
The expected results differ between the sample test and full test. Seems the links under 'See Also' are expected in the full suite, but not in the sample test.
try to imagine like this:____
suppose relation exist like this ({B: [A, C], D: [C, E], F: [E]})
consider keys as children and list as parents of child..
now next command is fam.set_parent_of("F","A") (relationship:-{B: [A, C], D: [C, E], F: [E, A]})
now imagine if i set A as male then
E will be female..
C will be male..
now if C is male then A must be female but we have assign A as male already and child cannot be produced by two males ^ ^
so its better to avoid parent-child replationship between F and A to remain in consistent state
Please be my mentor
Remember, it can't be changed now.
Took codewars wiki off of example tests as it changes too often. Will still work in regular test cases.
Found the same bug: "See Also" links are pulled by my code, which limit to
It seems the codewars wikipedia may have changed again? - 11/04/20
The expected results differ between the sample test and full test. Seems the links under 'See Also' are expected in the full suite, but not in the sample test.
Agreed. I think it's a 7kyu without the negative/above 255 check, and with those checks a 6kyu (also for understanding hex).
Ranks can't be changed.
dear andre-dasilva
try to imagine like this:____
suppose relation exist like this (
{B: [A, C], D: [C, E], F: [E]}
)consider keys as children and list as parents of child..
now next command is
fam.set_parent_of("F","A")
(relationship:-{B: [A, C], D: [C, E], F: [E, A]}
)now imagine if i set A as
male
thenE will be
female
..C will be
male
..now if C is
male
then A must befemale
but we have assign A asmale
already and child cannot be produced by twomales
^ ^so its better to avoid parent-child replationship between F and A to remain in consistent state
Do you understand why a chain of parent-has-a-child-has-another-parent-has-a-child...etc could be inconsistent?
Not a suggestion.
really? You're giving me confidence to talk this. I have to understand hex code first though
yes, perfs are the most important problem with this kata, actually
where do you see an ambiguity, there, exactly?
Thanks :)