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
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?