Ad
  • Default User Avatar

    Actually, Chrome and Node.js use the same engine, but the versions may be different. And the rest is true.

  • Custom User Avatar

    in my envoriment (Chrome DevTools) when I run this code I see the right sequence

    Except CW and Chrome are different environments using different JavaScript engines. Without seeing your code it's impossible to tell what's the source of the issue, although most likely it's a bad comparator. In any case, not an issue.

  • Default User Avatar

    I think in this task has a error because in my envoriment (Chrome DEvTool) when I run this code

    I see right sequence :

    ['h4lfa', 'k3hta', 'pw3ha', '6pg7ja', 'zdp0ma', 'w92ma', 'fonna', '6y90pa', 'o7ojfa', 'u2kqna', 'ap9la', 'x6qza', 'zf6usa', 'mpv5a', 'pu4a', 'mfvfaa', 'hpbma', '8nxlka', 'h5zpla', 'upl5ia', 'kpftoa', 'dyjjfa', 'in2jva', 'f0i9da', '8n7fa', '94c2a', 'i8ia', 'rtkjda', '762ua', 'aacka', 'fg9h9a', 'qzbta', '9i62ja', '6g1wa', '9s7ya', 'ryvq4a', '16etia', 'cs8tga', 'wf29a', '5arla', '8l0ya', 'xzzqma', 'm26aaa', '1pmvqa', '3jlpoa', '41nhta', '3q5tca', '44ktla', '5kpgja', 'y3snja', '2vqvoa', 'dnnv6a', 'bvlx7a', 'e8nma', '103fqa', 'gvj9da', 'thf5a', 'x6dua', '69e2ga', 'yxeda', '8ri2ka', '4i1hdha', 'dwlioa', 'q5p07a', '4idpa', 'wp57a', 'lu1d7a', '7ho5a', 'ul5fma', 'tlnqga', 'kek5oa', 'ybdzba', '5kk8a', 'v8pvva', 'hwaaga', 'lkmwma', '4l1hua', 'qxtmqa', 'npsgfa', 'doqla', 'yl9ya', 'c4sa', 'o504oa', '4klt9a', '9242a', 'pemhma', 'ha787a', '1z4h1a', 'opqhja', 'fm3qua', 'jkt6ra', 'iodwpa', 'gkc2ka', 'l8kdha', 'g5kwva', '1us5qa', '2qex1a', 'xe3jaa', 'ye95a']'

    But in console of this task I see this: Why first value in this.What happened this?

    '['y3snja', 'h4lfa', 'pw3ha', '6pg7ja', 'zdp0ma', 'w92ma', 'fonna', '6y90pa', 'o7ojfa', 'u2kqna', 'ap9la', 'x6qza', 'zf6usa', 'mpv5a', 'pu4a', 'mfvfaa', 'hpbma', '8nxlka', 'h5zpla', 'upl5ia', 'kpftoa', 'dyjjfa', 'in2jva', 'f0i9da', '8n7fa', '94c2a', 'i8ia', 'rtkjda', '762ua', 'aacka', 'fg9h9a', 'qzbta', '9i62ja', '6g1wa', '9s7ya', 'ryvq4a', '16etia', 'cs8tga', 'wf29a', '5arla', '8l0ya', 'xzzqma', 'm26aaa', '1pmvqa', '3jlpoa', '41nhta', '3q5tca', '44ktla', '5kpgja', 'k3hta', '2vqvoa', 'dnnv6a', 'bvlx7a', 'e8nma', '103fqa', 'gvj9da', 'thf5a', 'x6dua', '69e2ga', 'yxeda', '8ri2ka', '4i1hdha', 'dwlioa', 'q5p07a', '4idpa', 'wp57a', 'lu1d7a', '7ho5a', 'ul5fma', 'tlnqga', 'kek5oa', 'ybdzba', '5kk8a', 'v8pvva', 'hwaaga', 'lkmwma', '4l1hua', 'qxtmqa', 'npsgfa', 'doqla', 'yl9ya', 'c4sa', 'o504oa', '4klt9a', '9242a', 'pemhma', 'ha787a', '1z4h1a', 'opqhja', 'fm3qua', 'jkt6ra', 'iodwpa', 'gkc2ka', 'l8kdha', 'g5kwva', '1us5qa', '2qex1a', 'xe3jaa', 'ye95a']'

  • Custom User Avatar

    the thing you don't know about the random tests for now is the inputs that are sent to your function. You get your result and the expected one in the assertion. "print the input to the console" (->console.log(yourType, opponentType, attack, defense)), right at the beginning of your function, so you'll see in the console (left panel) the inputs appearing just above the corresponding assertion message.

  • Custom User Avatar

    C++ translation. Please, review and approve (the author is inactive).

  • Default User Avatar

    Sorry, but I don't understand how to print Random test

  • Custom User Avatar

    console.log("stuff in there")

  • Default User Avatar

    How do i print?Can explore your answer. Falled Random test

  • Custom User Avatar
  • Custom User Avatar

    if there is no opponent and what should be done should be stated in the description

    What do you mean by "no opponent"?

  • Custom User Avatar

    print the input to the console to get a grasp about what's going on

  • Default User Avatar

    I can't pass a test! What is problem can be here? "expected 0 to equal 625"

  • Custom User Avatar

    @alex_prog

    • Thanks Alex for posting, Well, Since your code consist of two loops, if They're nested, then your Code performance will fail against the random ones Since they're testing large numbers

    somebody give me please little tip

    • Getting rid of Nested loops, excessive iterations, Recursive functions if found Will help, Optimize your code , also for more help , posting your code under Spolier Flag will make coders able to discover what's wrong :+1:
    • Tuned to hear your feedback, Hope you've Enjoyed Maximum Multiple, Sort out the Men Out of Boys :wink: .. Regards .. Zizou
  • Default User Avatar

    I don't know how to change my algorithm, My code consisted of tow loops, somebody give me please little tip:)
    I check my code, it works with tests

  • Default User Avatar

    I waste a lot of time for this task,because first impression will be complex task, but after test when i looked in test(random) i fixed my code soo fast. I think the tast can be more understanding

  • Loading more items...