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 for answering. I have submitted my request.
You could save yourself the trouble by checking the list of available packages.
Additional packages can be requested by creating a ticket in the Codewars runner repository.
I decided to learn Rust's Nom crate. Got a nice solution up and running with Nom, only to experience that Nom is not accepted. Nom has 158+ million downloads, and I will suggest that any rustacean would consider Nom for a task like this.
Allow Rust Nom crate!
Hey @Tenbagger , just returned to this comment thread by accident: glad to see you ended up solving it and thank you for the good etiquette of resolving your own open Issue.
As for your point about the troubleshooting article: is this comment about unsafe blocks a Rust-specific issue? I'm not very knowledgeable about many other languages.
If so, maybe the docs were written before Rust was added to CW supported languages, or it wasn't anticipated during the writing of the article. If you have access to the CW Discord, you could drop a quick message in the #rust channel there - it could end up helping other solvers, or allow a mod to add a note to the documentation.
Just for completeness: My code used some unsafe blocks. After changing some data declarations and refactoring away unsafe blocks, my code runs just fine.
A point of note perhaps: I can't seem to remember any warning against unsafe blocks in the otherwise long troubleshooting article.
That's the correct answer for
n=250 and n=5
(I've spoilered your reply just so it doesn't give people info about orders of magnitude).So it seems your code is fine - I don't use Rust so I'm out of ideas, so hopefully one of the site's Rust users can check the tests and/or your current solution.
You can also ask in the #rust channel in Codewars Discord - make sure you state that you have a working solution, so power users know you're not just asking for the solution ;)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks for the link.
I'm writing in Rust. In the Playground, I have called the specific sequence number given as error from Codewars, without problem. Also; I have run a loop from 1 to 250 without problem.
Update - there's a post below https://www.codewars.com/kata/5644a69f7849c9c097000073/discuss/python#62b644f28e12f8005894e382 where a user misses a few terms; there's an edge case that appears as early as
n=5
that I can see.Does your code correctly return
890
forn=5
or does it incorrectly return1025
(or something else)?The fixed tests are with the first 4 consecutive terms; latter (random) ones might be the ones that introduce the difficulty.
As a consistency check, what do you find for
n=250
?Which language? Did you try calling your function several times in a row in your Playground too? Read this: https://docs.codewars.com/training/troubleshooting and help us help you.
Random tests claim that my routine returns numbers that are later in the sequence, but when I run on my own hardware or in Playground, I get the expected numbers. Is there something wrong with the random tests?
Hans Niemann?