Different time and memory complexity in different compiler

Revision en4, by cloud_007, 2022-09-22 08:21:34

Hi!

I've found this strange thing(maybe not that strange who already knows it). Can anyone explain why this takes less time and memory complexity in C++14 and C++17 compilers than in the C++20 compiler? I've attached the time and memory complexity of this problem below.

Submission Link: C++ 17 C++ 14 C++ 20

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English cloud_007 2022-09-22 08:21:34 223
en3 English cloud_007 2022-09-22 08:19:50 28 Tiny change: ') below.\n![ ](https://' -> ') below.\n[image](https://'
en2 English cloud_007 2022-09-22 08:18:45 30 Tiny change: '/F) below.' -> '/F) below.\n![ ](https://ibb.co/chJfH61)'
en1 English cloud_007 2022-09-22 08:17:58 379 Initial revision (published)