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.
Thank you. This works!
When there are no g-step primes PowerShell returns "" (empty string). I modified the tests so you can see in "Sample Tests" such an example of return; moreover I added some printing so you can see clearly what is expected and what is your answer. Hope that will help you. Cheers!
Hi,
I am having the following issue:
Expected: {}
But was: {}
Data type for
$expect
isSystem.String
I have this code:
if ($res -ne $null) {return $res} else {return ""}
I am not sure what to return?
I have tried the following but nothing works:
'', ` `, "", " ", $null, @(), @{}
Why is my output not matching the
$expect
output?Languange: PowerShell
I figured it out: If empty, return ""
Hi, please help with the below:
I am returning $null or just an empty array for those two cases.
Thanks!
Noted. Thank you for your help!
The alphabetical order is ascending, so E goes before J, and the 8th in the list is James.
This comment is hidden because it contains spoiler information about the solution
In this solution the type of the return is not the good one.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Make you code faster, codewars is much slower than your local machine :)
This comment is hidden because it contains spoiler information about the solution
Could you please advise if this is possible to do before timeout(12s) in PowerShell? Thank you
Without the input, how can we (or you) know your results are ok? Print the input: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Loading more items...