Can a TLE in java be AC in C++ ?

c-plus-plus
java
tle

#1

Can a solution with TLE in java be AC in C++ with same logic.


#2

Such cases very rarely it happens (when your solution is at the boundary of time limit). But always there exist a proper solution which runs well in time for any language, so if you get a TLE, its good to think that there exist a better solution then the one getting TLE.