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.
hamiknk: that's for Go, while Khath1d3 used C#.
you can debug test cases with next lines
func QueueTime(customers []int, n int) int {
...
thanks i think i got it ,you can confirm for me
The fact that u had to modify means that it not a duplicate
This is virtually an exact duplicate of Sort the odd
, as I only needed to slightly modify my code here to make it pass there.
You can study the format / structure / syntax of higher quality kata and see how their random tests are built in your language.
Also, you can review the available documentation on this subject.
sorry about that.This is my first Kata been trying to find out how to create a random test for hours now still no luck ,would appreciate it if you point me to the right direction.
Thanks for the input.Will consider the casing
Odd_ascend_Even_Descend
is unacceptable as function name: it isn't camelCase, snake_case, PascalCase, or anything.Note that by C# convention method names should be in PascalCase, so
OddAscendEvenDescend
.Thank you for your feedback I reevaluate it.
throw new Exception()
is not the best placeholder.NotImplementedException
would be better, or returning a dummy, empty array would be fine too.This comment is hidden because it contains spoiler information about the solution
You used
Issue
label, that's reserved for problems with the kata itself. UseQuestion
if you want to use a label for cases like this. And I already told you how to print the input to help you debug your code. You can also provide your code following this guideline: https://docs.codewars.com/training/troubleshooting/#post-discoursei never said the problem is with the kata i just said i need help reviewing my code maybe someone might have a better eye than me ,because i have been doing this for hours.
Loading more items...