Array<'Int> get's TLE, while IntArray get's AC

Revision en1, by pallav12, 2021-04-02 20:05:06

While trying to solve this, I made 2 submissions with only difference in using Array<Array<Int>> instead of Array<IntArray>.

  1. IntArray got AC in 546 ms
  2. Array got TLE with more then 3 sec

Can anyone please explain reason for this?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English pallav12 2021-04-02 20:05:06 465 Initial revision (published)