5 kyu

Can you get the loop ?

1,250 of 29,345Devouring
Description
Loading description...
Algorithms
Linked Lists
Performance
  • Please sign in or sign up to leave a comment.
  • tabaskuh Avatar

    Seems broken for Kotlin. No Node implementation available. I like to code locally and not in the browser. Am I missing something?

  • Bigoh20 Avatar

    I don't understand the Hash part. Am I allowed to use a HashMap or not?

  • aivensir Avatar

    This comment has been hidden.

  • Sadismus Avatar

    This comment has been hidden.

  • fenKss Avatar

    It's broken in php. $node->next() returns only the same object, which has nothing in it except the next method. Literally. What should I do with it if the objects don't even differ from each other in any way and it falls into an endless cycle?

      var_dump(get_object_vars($node));
      var_dump(serialize($node));
      $b = $node->getNext();
      var_dump(get_object_vars($b));
      var_dump(serialize($b));
    
    array(0) {
    }
    string(33) "O:4:"Node":1:{s:7:"*next";r:1;}"
    array(0) {
    }
    string(33) "O:4:"Node":1:{s:7:"*next";r:1;}"
    
  • oftaptycode Avatar

    i don't even know what this is about

  • Timeon1 Avatar

    find the answer was not too diffcult, solve the timeout problem was important! feel fun with this KATA

  • Densetsu no ocha Avatar

    Hello, I need help. I use c++ and for self-checking I wrote the Node class with similar methods myself. The problem is that the tests are running correctly on my computer (when I type in test examples), but when I test the code here, it gives a completely different value. What could this be related to?

  • T-Mann333 Avatar

    Anyone solved this Kata in php? I am struggling how to optain the value of a node.

  • wqzv Avatar

    This comment has been hidden.

  • Simek98 Avatar

    I'm kinda lost with the input format here. Looking at the test cases, I'm not really getting it. Is there like a ready-made object I should be using, or am I just missing something?

  • alf4ntastic Avatar

    This comment has been hidden.

  • roobbs Avatar

    The Node class should be in the description, honestly it is hard to think of a solution without being able to access to Node value or something

  • testst345 Avatar

    This comment has been hidden.

  • MelinShoot Avatar

    This comment has been hidden.

  • MelinShoot Avatar

    test said "don't mutate nodes". suggest test to ensure nodes are not mutated.

    (I overrode the class in my solution, but it was probably outside the intent of the author)

  • user8110318 Avatar

    Why the hell is the Node class not in the description? It only makes mention of node.next, but I have no idea how to access the value of the Node.

  • carafelix Avatar

    This comment has been hidden.

  • nikanikanika Avatar

    This comment has been hidden.

  • Rufus_Nightjar Avatar

    This comment has been hidden.

  • Christina Papadodimitraki Avatar

    This comment has been hidden.

  • EfrainAD Avatar

    This comment has been hidden.

  • RJPlog Avatar

    This comment has been hidden.

  • Fa4Fr Avatar

    Fun challenge, learned something new

  • Eatkin Avatar

    Learnt something new with this Kata, very cool, thanks!

  • Hey-J Avatar

    Execution Timed Out with Random tests in JS

  • sharpsh007er Avatar

    just skip this if you're doing PHP, it makes no sense and it's just garbage

  • tolgaersoy Avatar

    This comment has been hidden.

  • BekzodIsakov Avatar

    I think some random tests have too long lists like more than 8000 nodes. And the time given for testing process is out before the algorithm loops through the exisiting nodes.

  • MVashenko Avatar

    This comment has been hidden.

  • genericca Avatar

    >it pases the fixed tests with 8k nodes but times out with the random tests

    ペイン

  • ZacharyJJones Avatar

    Time restriction is unfortunate, would be nice if I could verify that my logic is sound or how close my implementation is to meeting the time restriction - unfortunate reason to be unable to complete the kata when I wrote something that wasn't even egregious in time complexity.

  • theo99j123 Avatar

    I have a general question, does anyone know where the function getNext() is from and if it is possible to see the code for it or see if there are more functions available from that library?

  • l96alex Avatar

    Ok completely fluked this one

  • ang11 Avatar

    This comment has been hidden.

  • Madness20 Avatar

    Hi, python user here. I'm totally lost on this, i'm not sure how i'm supposed to extract even a single value. I've read most things about linkedlists and sorts, but if i try something like node.next or something i can't even extract the value. Can someone help me how i'm supposed to even print a single value, that's all i need.

  • nomennescio Avatar

    This comment has been hidden.

  • KepLer100500 Avatar

    Nice kata =)

  • neilmolky Avatar

    Interesting challenge, I tried a lot of approaches and failed alot before getting a solution that didn't time out. Would it be possible to leave the expected time and space complexity in the Kata description to make it clearer when beginning the Kata what is expected? Also, it is not obvious how high the random tests go but in python I pass the random tests as long as the tests dont go higher than node len(16500) which is not clear to me if I have a) actually beat the challenge and it's not optimised for python or b) lucked out with the random tests and didn't really beat it

  • barabashka3.17 Avatar

    Thank you vary much one more time! Its really great kata. In the begin I dont understadt what you wont. But now I made solution I have little bit more exp. and skills in the write codding!

  • m_m_k Avatar

    This comment has been hidden.

  • <--BinaryAir--> Avatar

    Can anyone explain the terms of the assignment? It is more or less clear what should be at the output and it is not at all clear what is at the input. It is impossible to understand.

  • yoshaaa Avatar

    This comment has been hidden.

  • Bernhard1979 Avatar

    I failed in C# because of time outs. Then I limited the maximum amount of nodes to 1000 in the loop to see if I find the problem in the response with a return 0. It is expected to find over 700.000 nodes in a loop so I think we have time out issues with that.

  • barabashka3.17 Avatar

    Кто нибудь может нормально обьяснить условия задания? Более менее понятно, что должно быть на выходе и нифига непонятно что на входе. Ни на английском ни на рауукосм понять невозможно.

  • trashy_incel Avatar

    C: the input structure should be const-qualified

  • yoshaaa Avatar

    Why don't add a void * field on the struct Node? I think it would help with the performance

  • yleb Avatar

    Hello, My code pass all the tests, but fails the attempt with message "Execution timed out 12s" . Can anyone help me?

  • BillyBobDarrell Avatar

    Definitely the hardest kata I have done, and my poor solution wouldn't even work in the wild.

    Some advice I would give - for the best solutions, the tail length does not matter. Just focus on determining the length of the loop.

  • DomBurke23 Avatar

    I wanted to run this on my local machine, does anyone know what the class LoopDetector looks like please.

  • Ten6u Avatar

    This comment has been hidden.

  • Arctic-Panda Avatar

    Hi can someone please explain what the tail represents in this problem

  • Daringu Avatar

    I got "Maximum call stack exceeded" error in JavaScript. I use Set in my solution. I passed all tests, but fail at attempt

  • Faleay Avatar

    Perhaps because of my poor English, I don’t understand at all what is required of me in this kata. :/

    Please, can someone help me to understand problem of this kata. And, yeah, if you know russian language it would be more clearer for me. Thanks!

  • nils-e Avatar

    I got the tests to pass, but the "attempt" tests are too difficult to debug at 6k loop size. Anyone have suggestions or tips?

  • razetime Avatar

    This comment has been hidden.

  • AndresEfQ Avatar

    This comment has been hidden.

  • jogibanger Avatar

    Really not easy to understand what's the problem. Could you plz explain more, for better understand.

  • 7MinutesDead Avatar

    This comment has been hidden.

  • ask_generator Avatar

    I didn't understand, what exact problem I have to solve?

  • mohrizkyk Avatar

    This comment has been hidden.

  • hclovepan Avatar

    This comment has been hidden.

  • Andrey-Voinalovych Avatar

    This comment has been hidden.

  • nothub Avatar

    This comment has been hidden.

  • maxim.butenko92 Avatar

    This comment has been hidden.

  • charger1ng Avatar

    This comment has been hidden.

  • tsp888 Avatar

    Randomly passed a code that should be too slow.

  • cbolik@gmx.net Avatar

    This comment has been hidden.

  • skull_knight Avatar

    i'm very confused, in some test cases count the self reference as 1 like A -> A, but in other cases the self reference is ignored like A -> B -> C -> C (the test case expect 1 :s), I don't catch the logic

  • zebra-f Avatar

    It doesn't matter for a solution, but the description might be misleading for a lot of people since in some cases node == node.next.

  • Nikeron2020 Avatar

    Very good kata to practice with pointers and references! Thank you)

  • nguyenlekhtn Avatar

    This comment has been hidden.

  • janedoe. Avatar

    I had to lookup an algorithm for this, a mind bender for sure

  • Zero95 Avatar

    I cannot get the values in JS for some reason, so I don't understand exactly what I have to do :S

  • woowgers Avatar

    This comment has been hidden.

  • mokpoTheMighty Avatar

    (Python) Could someone point me to a source explaining exactly the thing this kata calls "nodes"?

    Honestly, I have no idea what these "nodes" even are, Spyder doesn't recognize the "Node()" function as a name, There's this tutorial: https://www.tutorialspoint.com/python/python_nodes.htm which suggests it's just when you make a class yourself and put in attributes that point to other attributes, in a very general sense. Searching on this site: https://docs.python.org/3/search.html?q=nodes doesn't give me any results that seem to be what I'm looking for. And so on...

    Really, it seems I can only find talk about "nodes" in python that mean very different things depending on context and nothing like "The Python Nodes" which is what this kata seems to take for granted.

  • shekelboi Avatar

    Be very careful with the time complexity. I added a null check and because of that the maximum time has been exceeded.

  • Alhazred999 Avatar

    this looks interesting

  • jannatulNayem Avatar

    This comment has been hidden.

  • thinker227 Avatar

    This comment has been hidden.

  • Aksimka Avatar

    Javascript. Yesterday it shows "Out of time" but today it's "Max buffer size 1,5 mb" on second test. What data in second test?

  • Franconline Avatar

    My code pass the first test, but in the second one it gives me passed out time. It might be that my code is not doing the solution in a proper way, but I also think that maybe the test cases are wrong.

  • idkos Avatar

    Something is wrong (C). I get correct values for FourNodesWithLoopSize3, NoTail and TinyLoop on my PC, but these tests fail here for some reason...

  • MartinH2k3 Avatar

    This comment has been hidden.

  • Teliozz Avatar

    C#

    Im stopping for now as obviously Im missing something. My tests pass but I get a time out at the actual attempt. I'm using a single linear loop to go through all of the nodes, adding them to a List and checking if the current node I am at is present in the list. If present, It means I have looped through all of them, so then I just return the count - the index of the current node. I guess it should have a simpler solution judging by some of the comments in the Discussion but Im stuck for now, will come back to it later. I dont really see how you can figure this out without looping through all the nodes, because you only have node.next, and nothing else to indicate what text or something this node has (Judging by the image, they should have some text in them), I tried using the node itself, text, Text, GetText, value, Value, but none seem to give me any values. I also tried using reflection to print out the properties and also got only .next.

  • requizm Avatar

    This comment has been hidden.

  • Zerocondor Avatar

    Nice Kata ;)

  • davidstosik Avatar

    Using Ruby.

    #use this if you want to create your code on you computer the class of the node is in the description

    The the Node class is not in the description.

    When running "Test", I get an unexpected error:

    Response received but no data was written to STDOUT or STDERR.

    Even when I tried with a very simple solution that's wrong but should not "break":

    def loop_size(node)
      puts "Hello"
      0
    end
    
  • Aiden2207 Avatar

    Rust translation ready for review. Fyi, I used the arena pattern because not leaking memory in reference cycles is really hard in a non garbage collected language.

  • brma Avatar

    hi, if I dont have the last element in the LinkedList (None) how can I solve this, any hints woyld be great. becuse we cant work wih node.value I will always get a prepended object (memeoryreference) wich dont give much. node will always show memoryreference and it will consider anything else but None, so how can I get the end of the linkedList? any hints?. should I recursive this?

  • Tintin301 Avatar

    There needs to be more of a description here than just briefly mentioning the two methods added as properties on the 'node' object argument. I have to console log just to clarify everything for myself. You have a node.setNext method that you didn't even mention in the description of this Kata. This is obviously crucial in solving this. Please update the description to include a clear picture of what your passing into the function as an argument.

  • ejini战神 Avatar
    • Python new test framework should be used (Refer this & this for more detail)

    • Ruby 3.0 should be enabled (Refer this & this for more detail)

  • Root-Exec Avatar

    This comment has been hidden.

  • PhantomSC Avatar

    for some reason I just couldn't get console.log() to work in Javascript. (Probably something really obvious). Had to use C++ instead. Otherwise a simple and fun Kata.

  • paweluz Avatar

    This comment has been hidden.

  • sergun4ik Avatar

    This is a great kata! The obvious solution worked fine for me, but failed the efficiency test. After looking at some algoritms, found a much more efficient way to solve it :) Very satisfied with it.

  • Xodot Avatar

    This comment has been hidden.

  • Slate245 Avatar

    This comment has been hidden.

  • user3652689 Avatar

    Pretty fun and surprised not to see my solution already proposed, finally I saw only loops

  • DannyS95 Avatar

    Hello, i have returned to this Kata and subsequently i must apologise for my impulsive critique. I simply didn't realize how it could be done because i am a bit new to Java algorithms. I did not really find this Kata too difficult, about as difficult as other 6th Kyu, but i will surely take my time to see other solutions and also JoJoSmith10 shared article which proved very interesting at face value.

  • DannyS95 Avatar

    Don't waste your time with this kata, it seems interesting, and with more intuition to the problem it could have been a pretty fun 6th kyu Kata. But you can find plenty more friendly Kata that cover the same subjects.

  • JoJo10Smith10 Avatar

    I really enjoyed this kata and solved in both java and python. I was looking forward to reading the article but was having trouble finding it. Could the link to "Dmitry's article" please be added to the problem statement (Kata description) since I had trouble finding it. I was able to find it thanks to user: gayanw who posted the link as: http://blog.ostermiller.org/find-loop-singly-linked-list

    Thanks!

  • vol1ura Avatar

    This comment has been hidden.

  • johnsbuck Avatar

    I was a little annoyed with how easily this could be solved with recursion, but when you used recursion you run into an overflow error. This isn't the first problem that I've seen do this, but I think it limits the possible number of solutions.

    Maybe it's a Python thing?

  • amadeus78 Avatar

    WoW I made it. This Kata was easy but managing speed is very difficult. You need to keep your algo. very fast. I tried to rerun the program three times in order to catch the server required time.

  • thanhkhanhcntt Avatar

    Error: Cannot access protected property Node::$next

  • dioPizzaGuy Avatar

    I have a question its different with this kata but does anybody know how to find the position where it starts connecting? When I was working on this kata this question pop in my head.

  • SATYA995 Avatar

    Response received but no data was written to STDOUT or STDERR while submitting a solution in ruby.

  • JussyM Avatar

    hello i have a question i'm coding this kata on java and i would like to know we have to create the Node class our self if yes what will be the operation

  • martline1 Avatar

    This comment has been hidden.

  • Hpr3008 Avatar

    Maybe I should start learning C++ since Python always shows timeout status in many katas on CodeWar :(

  • brickred Avatar

    The description states 'don't mutate the nodes', but in python the simplest solution seems to include adding an attribute (e.g. 'visit_index') to each node while traversing the linked list. If adding such an attribute should not be done, there should be a test that checks that the nodes are not mutated.

  • mohrizkyk Avatar

    This comment has been hidden.

  • user8860568 Avatar

    This comment has been hidden.

  • nathanpark Avatar

    Python time restriction is too strict

  • IceColdPT Avatar

    im also getting time out. My tests are all passing, and i am only using one loop. ;(

  • Skandsen Avatar

    This comment has been hidden.

  • Sunsofold Avatar

    Passing the tests but timing out on the actual attempt with python. (just using a stored list of visited nodes and checking back with each new node to see if the circle is joined)
    I want to be able to read up and come back to this one after I've learned about it rather than just look at other's solutions.
    I know there is likely a more efficient way. Can anyone tell me the search term I should be looking up to find the correct technique to make the code efficient enough to complete the kata?

  • ALowVerus Avatar

    I can't see the implementation of the Node class in PHP, so I'm not sure how to identify the node to check it. Is there some Node.ID attribute?

  • Angelwrith Avatar

    This comment has been hidden.

  • yavidor Avatar

    This comment has been hidden.

  • idadidut Avatar

    the image is no longer available

  • baconStrips1111 Avatar

    This comment has been hidden.

  • craigmc08 Avatar

    In haskell, attempting to run the code just results in "File name does not match module name".

  • Fadarrizz Avatar

    This comment has been hidden.

  • diogotcorreia Avatar

    The function in JavaScript is named loop_size. According to Javascript conventions, it should follow camelCase, which means it should be called loopSize.

  • warren13 Avatar

    This comment has been hidden.

  • Z4k Avatar

    The picture is not loading (empty). Does anybody have a backup somewhere? I'm curious :)

  • Archi77 Avatar

    why after using $node->hetNext() i gotted similar node?

  • R4zeel Avatar

    python answer seems to be very slow, cant find proper solution

  • gregmohr Avatar

    I'm unable to get anywhere on the JavaScript implementation. Can we please have a complete view of the Node class/object implementation? Neither node.next or node.getNext() appear to be doing anything. Also, the nodes have no values, as near as I can tell. Which could be the issue with trying to determine if the next are doing anything.

  • gregmohr Avatar

    These nodes apparently have no values or identifying properties. I can't tell if my attempts to increment them is working at all. This description really needs more info on how to use these nodes.

  • Chrono79 Avatar

    In some languages you can get away with mutating the nodes, like in Python and PHP (maybe in some others too).

  • Samir70 Avatar

    This comment has been hidden.

  • RedAlert Avatar

    This comment has been hidden.

  • Zurumu Avatar

    This comment has been hidden.

  • Madao3 Avatar

    The Ruby solution almost cheating LOL.

  • 123456777777 Avatar

    This comment has been hidden.

  • syanaputra Avatar

    I'm hitting brick wall with PHP.

    I have O(n) complexity but it is still timing out. Has anyone solved this in PHP?

  • MikeIsHereWorking Avatar

    In C# I believe my solution complexity is O(n) and I still get a timout. Does that seem correct, can it be done faster than O(n)?

  • hughjdavey Avatar

    There is no implementation of the Node class so it is not possible to get the solution and test cases running in an IDE instead of using the CodeWars web GUI

  • eqkwizard Avatar

    This comment has been hidden.

  • jackwilsdon Avatar

    JavaScript sample tests are the default "TODO" tests from creating a new Kata.

  • hksong Avatar

    This comment has been hidden.

  • Awrange Avatar

    Tried to solve this in Java and none of the usual methods of the Node class work. There is no wa to solve this without knowing how a Node is implemented

  • AdamHebby Avatar

    This comment has been hidden.

  • jayman39tx Avatar

    This comment has been hidden.

  • Chrono79 Avatar

    There are some pending translations, and the author is long gone, so could any power-user check them and approve them if they're ok? I would do it, but the languages of those translations I'm not familiar enough with (C, C++).

  • DainDwarf Avatar

    This comment has been hidden.

  • JerzySpendel Avatar

    This comment has been hidden.

  • mansyfan Avatar

    I'd say it should be like 4 or even 5 kyu, not 3.

    And please someone add a mention about immutable nodes to the task description (or at least mention it in test cases output). Now it's unclear and makes people hate.

  • juking Avatar

    tips : nodes immutable

  • chs Avatar

    Ruby version is broken.

  • ashelkov Avatar

    this easy for 3kyu - 5kyu is more suitable

  • theDarkBright Avatar

    Why the hell is this a 3kyu? This is 5-6.

  • maksymczech Avatar

    This comment has been hidden.

  • blonkm Avatar

    I really really stumbled until I checked the comments and saw people saying "don't modify the input". I think this should really be required text in the kata description!

  • hakata Avatar

    This comment has been hidden.

  • michael_wu Avatar

    The missing (and hence failing) sample tests and the comment "broke all of the methods from the Hash class" made me believe I cannot use Hash and Array to store the visited nodes.

    This made me find a much simpler solution without storing.

    I like it.

  • lbvf50mobile Avatar

    This comment has been hidden.

  • Gunslinger <RL> Avatar

    In PHP this was stupid simple (but only becouse you can change the object you test on)

  • davidaq Avatar

    Many 4kyu katas are a lot harder than this 3kyu kata. My opinion is that this should be put at 5kyu.

  • frogamic Avatar

    This comment has been hidden.

  • jGlass314 Avatar

    Is the javascript Attempt broken? When I try the Attempt I get the following:

    
        TypeError: start.setNext is not a function
             at create_chain
               at Object.handleError
            at ContextifyScript.Script.runInThisContext
        at Object.runInThisContext
    The instructions say nothing about implementing a start object or a setNext method, so I've neither called nor implemented either.

  • Pcross Avatar

    Tip of advice do not modify the input.

  • HelloWorlder1907 Avatar

    python 2.7 code passes all tests but fails due to the timeout issues when I press Attempt

  • donaldsebleung Avatar

    PHP Translation Kumited - please carefully review and approve :D

  • Charlie Yu Avatar

    I keep getting this error:

    "Network Error

    This error was caused due to an issue processing the web request, not because of an issue executing your code. You can retry the request."

    without being able to edit or resumbit code.

    I think I am just stuck in an infinite loop, but this isn't the usual error.

  • safiir Avatar

    Why this kata was locked?

  • sz3nt Avatar

    I don't know anything about Nodes. Can someone give me a hint how should I start to solve this kata? I cannot get any fix starting point, not even understand the details... I was really surprised when read the "it should be a 5kyu or 6kyu, not a 3kyu" comments while I am unable to start it...

  • aadithpm Avatar

    I think with a better description and an example or two, this could be bumped down to 4 or 5kyu. Nevertheless, was fun to do. :D

  • KH! Avatar

    don't think the py version is too easy for kyu3 ??? also, i don't figure out how i can make a translation (really wantin' to make the C version )

  • hufftheweevil Avatar

    I agree with most other comments that said the description needs to say that you can not modify the input. I was quite confused why my code wasn't working at first. But once I found that out, it all made sense. I suppose one could say that that's part of the kata, but if that's the case, then all these comments should be marked as spoilers. If not, then just put in the description.

  • Blissus Avatar

    I know absolutely nothing about nodes, yet I don't understand why this is 3 kyu. Nothing special, at least in Java.

  • joelharkes Avatar

    The c# kata works fine and is very explenational but the javascript kata is very useless and doesn't even seem to work (using the exact same logic as C# kata)

  • kgorecki Avatar

    I believe there's something wrong in C# - when I test my solution (run sample tests button), it passes, but when I try to solve kata (attempt button) I got timeout on first test - FourNodesWithLoopSize3. It finds loop correctly - it enters to if nicely, shows "3" as expected and it doesn't go any further, but for some reason I got timeout. Hardcoding "return 3" inside of the loop returns the same result.

  • NeuroSerpens Avatar

    This comment has been hidden.

  • cypherfunc Avatar

    Nowhere does it say that you may not modify the input, e.g. adding properties. Also, the error messages you get give you no hint whatsoever that you are not allowed to modify the input.

    That said, I solved it by adding a flag prop to the nodes, ad then doing a second sweep to remove the flags. So there's also nothing that keeps you from modifying it, as long as you put it back.

    Not a bad problem, but it's way too easy for 3kyu. The only difficult thing about it is figuring out that you have to leave the input as it was.

  • rscharfer Avatar

    I can log the right answers, but when I return them, I get simply "value is not what was expected" without any further information. This occurs for all but the first test.

  • Andrew-Wei Avatar

    It seems too easy for 3ku. Nice kata, anyway.

  • gabrielwr Avatar

    The javascript version appears to be calling the function twice, which leads to incorrect numbers regardless. Please fix this!

  • Krosantos Avatar

    At least for the node version, it looks like it's calling my function twice (e.g., if my function is a single comment.log(), I see it twice). It returns 0 universally past the first case. I think it's broken.

  • yoseldvp Avatar

    Would be nice to have the code of the Node class, to know what to expect and specifically what solution implement.

  • haugk Avatar

    Haskell

    That was fun!

  • h41ko Avatar

    Beside that it was totally ok to have test cases with a zero tail, I would recommend not to state that there is ALWAYS a tail and a loop.

  • zebulan Avatar

    This comment has been hidden.

  • Y.y Avatar

    This comment has been hidden.

  • stellasie Avatar

    Would have been nice to know what "Node" class was being used for writing of the test in java.I usually do the exercises offline , but was not able to in this case

  • IvanRibakov Avatar

    Does anyone else feel that this kata complexity (3 kuy) is overestimated and it actually deserves a lower ranking?

  • patrickholley Avatar

    This comment has been hidden.

  • DSchwettmann Avatar

    This was no challenge whatsoever, not sure why it's ranked 3 kyu? At the very least it's trivial to solve in java.

  • salu Avatar

    it would be nice to add tests without loops

  • fgossiaux Avatar

    It would have been helpfull to know in advance that the hashcode contract (Java) is broken on purpose.

  • thdaraujo Avatar

    the ruby version is broken. It's ignoring the results.

  • givehug Avatar

    I have a problem in JavaScript

    second test:

    if i return 0: log 0 Expected 23 got 0 log 0 (not passed)

    if i return loop size: log 23 log 0 (not passed)

    tests starting from the second call function twice first time the returned value is correct, but function is called the second time and returned value becomes 0 and test doesnt get passed.