Quantcast
Channel: Longest spell to cast from pages of spellbook - Code Review Stack Exchange
Browsing all 5 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Longest 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 Article

Answer 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

Browsing all 5 articles
Browse latest View live




Latest Images