Answer by aghast for Longest spell to cast from pages of spellbook
One thing that these kinds of sites like to do is generate huge inputs that are trivial when viewed from the right angle.One "huge" input would be an array such that a[n] = n. This corresponds to the 6...
View ArticleAnswer by J_H for Longest spell to cast from pages of spellbook
deadlinkhttps://pctc.cuttle.org/index.php?action=user_question&grq_id=946This displays "action access denied" within a red box.Posting a link that requires competition credentials,on a public...
View ArticleAnswer by toolic for Longest spell to cast from pages of spellbook
This review is purely for coding style; it does not improve the speed.LayoutThe layout could use some improvements.Making an assignment to 6 variables on one line is error-prone and hardto understand,...
View ArticleLongest spell to cast from pages of spellbook
While practicing for a school coding challenge, I came across this problem. My code got the right answers but exceeded the time limited. Any tips for how to reduce the time complexity?This is from the...
View ArticleAnswer by Leo for Longest spell to cast from pages of spellbook
I think J_H's answer does a great job at detailing the style issues in your code, but I think there hasn't been a good and simple explanation of how to improve the algorithm yet, so here are my two...
View Article
More Pages to Explore .....