tishrah's blog

By tishrah, history, 3 years ago, In English

Simply printing System.out.println("Karen"); passes all the test case of this question.

Is there any logic behind it or it was simply my luck and a mere coincidence ?????

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Your streak is awesome but you should try practicing problems of higher difficulty, because the percentage of problems you have solved with rating >= 1200 is just 10 percent of your total solved problems and that's really low. I hope you would find this advice helpful.

Have a look at the level of the problems you have solved here.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    one gray guy teaching another gray guy OK

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      You can correct me if I said something wrong. The advice of solving problems higher than your current rating is not my advice it's what I have learnt from red coders like errichto etc. Also I said something which is quite obvious and is correct even if a gray says it, idk where you get that logic that if gray says something about cp that makes it invalid or less worthy to consider.

      • »
        »
        »
        »
        3 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        it's less worth just because u don't have enough experience. I have a question: if ur advice is good why are u still gray? now the author says that's ok giving advice but to me it looks like someone ask a question about task and another man with no reason starts to giving advice)

»
3 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

I think it because if $$$a$$$ $$$xor$$$ $$$b$$$ == $$$c$$$ it means that $$$a$$$ $$$xor$$$ $$$c$$$ = $$$b$$$, so if you found indexes $$$i$$$ and $$$j$$$ and $$$a_i$$$ $$$xor$$$ $$$b_j$$$ $$$=$$$ (number in second array), you can choose this number and get $$$a_i$$$ $$$xor$$$ (this number) = $$$b_j$$$. If this number in first array, you can choose (this number) $$$xor$$$ $$$b_j$$$ = $$$a_i$$$. So if you found pair you can also find another pair.