How to compile fast for Facebook Hacker Cup?

Revision en5, by Mong_Mang, 2023-10-03 23:52:55

In Facebook Hacker Cup 2022 Round 2, I coded a right O(n) solution (C++) for Problem A, but I downloaded the input test case and ran the code. but it took me around 8 minutes to get the output. As a result, I couldn't submit the output. However, after the contest, I submitted the output and got accepted. Can anyone please tell me how can I compile fast or overcome this problem or any suggestions regarding this?

Note: I use Codeblocks IDE. Sometimes I use VS Code.

Tags facebook-hacker-cup, need help, help


  Rev. Lang. By When Δ Comment
en5 English Mong_Mang 2023-10-03 23:52:55 28
en4 English Mong_Mang 2023-10-03 23:48:58 6
en3 English Mong_Mang 2023-10-03 23:48:35 54 Tiny change: 'ding this?' -> 'ding this?\nNote: I use Codeblocks IDE. Sometimes I use VS Code.'
en2 English Mong_Mang 2023-10-03 23:35:46 5 Tiny change: 'd a right solution ' -> 'd a right O(n) solution '
en1 English Mong_Mang 2023-10-03 23:03:16 453 Initial revision (published)