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.
Oh dear... has been quite a few years since I wrote this. Trying to remember what I was thinking...
normally:
So the NOTES part is intended to say this "stoppage-time" rule does not apply when the "start position" by chance happens to be at a station. In that rare case, on the next/first move you will immediately depart the station. So is the description really misleading? At the very beginning the "next move" and the "first move" is the same thing.
I saw something in the discourse that someone changed and I reverted 6yrs ago. But I can't see the history to see the actual changes to the wording.
As always with @dinglemouse, it is a fantastic Kata, but I found an issue and may have some suggestions :
You don't seem to realize I have put a lot of efforts to help you refine your kata...
You just have to make those changes to make it more "good looking" and maybe approved.
Note : For a kata to be approved nowadays, it needs to reach some standards of quality...
I made that suggestion because after following the 3Blue1Brown video, I conjectured a false formula that passes all your fixed but not the random ones...
So I think this could help other warriors go deep into reasonning before just using the 'obvious' (but not easily generalizable) formula found in the video !
Since the problem is more difficult than the one presented in this video, I suggest to add the following tests :
Task
Given an array of integers
arr
of lengthn
, count how many index pairs(i, j)
with0 <= i < j < n
satisfy the condition :j - i = arr[i] + arr[j]
Return the total number of such valid pairs.
Samples
arr = [3, 1, 4, 1, 5, 9, 2, 6, 5]
3
since :
arr = [1, 2, 1, 2, 1, 2]
6
since :
Notes :
O(n)
wheren
is the length ofarr
.First of all, love the Yoshi drawing. Now, what tests exactly do you want in the description? I already have the sizes in the description, do you want the number of tests?
Pretty much all I could say about the random tests are in the final tests and you can just hit submit with an empty solution to see all information.
Precise nature of the very challenging tests should be in the description
Thanks
description was updated
updated
Small typo:
Thanks!
I have fixed the missing suits for the example
This is mentioned in the problem description. I have added the fixed tests for this example (there was one actually - that tested full deck of cards in two different orders, but I added some better examples to the flop section.
Loading more items...