0

Print the last element without any method or properties.

Can you make this code bit better. Just playing around the language constructs and also trying some logic building process. P.s Actually i saw this question on the Internet. https://code.sololearn.com/WE92KAyzg1w8/?ref=app

27th Aug 2022, 4:51 PM
Dhanraj Tamang
Dhanraj Tamang - avatar
1 Answer
0
How can you make it "better"? when you have to iterate the whole array only to get the last element? how efficient was that?
5th Sep 2022, 1:03 PM
Ipang