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.
very smart!
it should be kyu 8 for golang
for golang it should be kyu 8 not 7
sorry, I wasn't aware thanks for the explanation
@g964 your katas are really great, but I believe the problem is that you take your meassure to set the difficulty. That kata shouldn't be 7 kyu for sure. Challenging topic and easy solution if you have quite good golang knowledge and know packages. I would say for 7 kyu it could be just for low n and that's all, 6 kyu with much longer n. I resolved quite quickly the problem, however I spent few hours to get familiar with appropriate packages. The point is that not all are perseverant, most people could be discouraged and that's not the goal in case of beginners.
I resolved, but IMHO for golang it is harder then for Python. It is doable, but I have to say that took me the most time from all kyu 7 golang kata
Let's leave it, if there are more people who share my opinion, then it could be taken into consideration.
Thanks for replying.
the point is that in case of golang, you simply need the proper formating, e.g. you use go fmt on a file or golint.
Take a look: https://play.golang.org/ and put there
package main;import "fmt";func main(){for i:=0;i<10;i++{j:=i+10;fmt.Println(j)}}
wc -c gives 81, then format before running (becase it is required) and wc -c gives 106, ~ +20%
So it is redundant to remove whitespaces for go, it is not javascript. Maybe the test could count in a more sophisticated way? That's only the suggestion. It is doable but very annoying to prepare the version just for test (removing whitespaces and building one liner)
string lenght should be calculated without whitespace characters, it is without any sense to count them
IMHO it shouln't be kyu 7 kata, in comparison to other kyu 7 this is simply hard
I tsted, with set it is like 20 minutes vs 40 seconds :] (counting generate 2x random 600000 strings)