Title |
User |
Message |
Date Posted |
uhh, still bad at modes |
magicalsoup |
i can find one mode, but i dont know how to find multiple modes,(note, im asking this for other questions as well). please help me |
Feb 15, 2018 - 1:18:16 am UTC |
Re: RE |
jargon |
The judge version of Python is 2.6.8, and you're trying to use collections.Counter, which was introduced in 2.7. We may upgrade the version at some point, but for now you'll have to solve this anothe... |
Nov 16, 2016 - 7:13:21 pm UTC |
RE |
Chinadoll |
I ran my code on my computer (windows cmd) and it works fine but when I submit it says RE? Please take a look at my code and give me a hint on what went wrong? |
Nov 15, 2016 - 2:35:45 am UTC |
Re: how can I make the numbers equal to each other |
jargon |
You just do regular assignment. x = y, much as x = int(raw_input()). |
Nov 08, 2015 - 5:32:57 pm UTC |
how can I make the numbers equal to each other |
zainnaiz |
Hi, while programming I stumbled across on how to make the numbers equal the same amount of each other. If anybody could help me it would be much Appreciated. THX zainnaiz |
Nov 07, 2015 - 8:53:35 pm UTC |
Re: Clarification |
SUPER_ET_DUPER |
Thanx |
Dec 02, 2014 - 11:18:04 pm UTC |
Re: Time limit exceeded |
SUPER_ET_DUPER |
Thanx to all |
Dec 02, 2014 - 11:17:35 pm UTC |
Re: Time limit exceeded |
Ajna |
If I may suggest, imho you are using one loop too many: you should be able to find the most common element in a single swoop, if your array is set in a particular configuration. Either that or you use... |
Dec 02, 2014 - 11:19:47 am UTC |
Re: Clarification |
Ajna |
I would not bother thinking about this extreme scenario: a good code should work for this problem no matter if there is one mode, ten modes or even the whole set is a mode. |
Dec 02, 2014 - 11:15:07 am UTC |
Re: Time limit exceeded |
FatalEagle |
Because your code does not produce the correct answer fast enough, obviously. |
Dec 02, 2014 - 12:06:19 am UTC |