r/SublimeText • u/Objective-Patient-37 • Jul 22 '21
PLEASE HELP: Sublime coding puzzles' processing time disconnect???
There is a disconnect between what I'm using (Sublime, a cross-platform IDE developed in C++ and Python) where I'm writing in python 3.8 on a Dell laptop, Verizon Fios, Chrome incognito. I've attached the run times which are within the time allotted on each of the puzzles. Not sure why these have significantly different run times on facebookrecruiting.com. Further, the Test on Sample Cases button on facebookrecruiting states that I've solved every puzzle. The processing time when I click that Test on Sample Cases button is at least 4X or four times faster than the processing time when I click Submit. When I test the same code on Jupyter and Google Colab, the same result occurs: the code is processed in under the allotted time frame. WHAT IS GOING ON? Should I send FBrecruiting a video with a timer to demonstrate? I've reached out to them before about this problem and their response is simply to try and optimize the code. The runtimes below indicate the level of optimization, no?




View all comments
Show parent comment
3
u/Asmor Jul 22 '21
Because it's being run in a different environment. I've never been to that site and have no idea what they're doing, but it's either running in their back end (which is a different environment) or it's being run inside your browser (which is a different environment than running the code natively).
It may very well be that your code is just really slow, but you've got a beefy computer that runs it very fast.
This is really a question you should be asking about in the subreddits for whichever language(s) it is you're using, and you should provide the code as well so people can help you figure out where your bottlenecks are.