Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
thanks for catching that, just fixed
I believe I understand now what you are communicating. The phone number for each random test is generated dyanmically and unique for each test. I updated the random tests to have a greater probability (~50%) that the randomly generated phone number will be a valid one, thus causing the random test to expect $true instead of $false.
The fixed tests have a mix of expecting true and false. The random tests will dynamically determine if the expected value is true or false
awesome, thank you! I need to rework my algorithm a little bit.
sorry pasted wrong input sequence above, correct input array I have a question about is: {8, 9, 9, 8, 7, 8, 8, 9, 8, 7, 9, 7, 9, 8, 7, 8, 8, 9, 8, 9, 7, 9, 9}
This comment is hidden because it contains spoiler information about the solution
[C#] My code is passing all of the sample tests, but fail some random tests.
The sequence new int[] { 7, 8, 9, 9, 7, 8, 7, 8, 8, 9, 9, 7, 7, 7, 8, 8, 8, 9 } is taking me 8 moves to sort, but it says expected 7. Am I missing something?
8,9,9,8,7,8,8,9,8,7,9,7,9,8,7,8,8,9,8,9,7,9,9 -> 7,9,9,8,7,8,8,9,8,7,9,7,9,8,7,8,8,9,8,9,8,9,9
7,9,9,8,7,8,8,9,8,7,9,7,9,8,7,8,8,9,8,9,8,9,9 -> 7,7,9,8,7,8,8,9,8,7,9,7,9,8,9,8,8,9,8,9,8,9,9
7,7,9,8,7,8,8,9,8,7,9,7,9,8,9,8,8,9,8,9,8,9,9 -> 7,7,7,8,7,8,8,9,8,7,9,9,9,8,9,8,8,9,8,9,8,9,9
7,7,7,8,7,8,8,9,8,7,9,9,9,8,9,8,8,9,8,9,8,9,9 -> 7,7,7,7,7,8,8,9,8,8,9,9,9,8,9,8,8,9,8,9,8,9,9
7,7,7,7,7,8,8,9,8,8,9,9,9,8,9,8,8,9,8,9,8,9,9 -> 7,7,7,7,7,8,8,8,8,8,9,9,9,8,9,8,8,9,8,9,9,9,9
7,7,7,7,7,8,8,8,8,8,9,9,9,8,9,8,8,9,8,9,9,9,9 -> 7,7,7,7,7,8,8,8,8,8,8,9,9,8,9,8,8,9,9,9,9,9,9
7,7,7,7,7,8,8,8,8,8,8,9,9,8,9,8,8,9,9,9,9,9,9 -> 7,7,7,7,7,8,8,8,8,8,8,8,9,8,9,8,9,9,9,9,9,9,9
7,7,7,7,7,8,8,8,8,8,8,8,9,8,9,8,9,9,9,9,9,9,9 -> 7,7,7,7,7,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9
That's not the correct input for that test.
PowerShell translation Kumited! Please review and approve :)
PowerShell translation Kumited! Please review and approve :)
Happened to me as well. I got around it by pushing a 3 to the LL in my solution
This Kata is part of a series, the one prior to this covers Push and BuildOneTwoThree()
http://www.codewars.com/kata/linked-lists-push-and-buildonetwothree
PowerShell translation Kumited! Please review and approve :)
That test got me at first too. Look closely at the input and it should become clear why it's expecting false.
You can disable ads in Account Settings, under "Codewars Red Options:" did you uncheck the "Yes, show me ads..." box?
Loading more items...