Skip to content

Execution Timed Out (12000 ms) when running a Kata about converting decimals to binary #3354

Closed Answered by Kacarott
luciano2777 asked this question in Q&A
Discussion options

You must be logged in to vote

Well your solution goes into a loop which lasts N times, so if N is really big, for example 77231418, then it takes a really really long time. You need to work out a way to do it faster than this.

Maybe look up what built in functions Python has for dealing with binary

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by luciano2777
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants