Bedrock and java machine that adds 2 numbers (purple) where x+y<17. Output in green. The exact operation is 15-((15-x)-y)=x+y.
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/mrcgamer
πŸ“…︎ Jan 03 2022
🚨︎ report
Was there a point of time when array.length is a O(N) operation in Java

So I remember my professor back in college tell me that in Java array.length is an O(N) operation, since the implementation would need to go through the array to count everything. That is why I should keep the array length in a variable so that I only call array.length once.

Recently this was brought up in a conversation, and I looked it up. Array.length is a O(1) operation since the length is just a property. My professor was old, so perhaps back in the day, it was a true statement?

Edit: there might be a chance that I misremembered, and it was arraylist. Though arraylist.length should still be O(1), unless it wasn't at some point?

πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/switchitup_lets
πŸ“…︎ Oct 22 2021
🚨︎ report
As theatres open, the top 5 films of the OTT year 2021 so far are Nayattu, Drishyam 2, Joji, Thinkalazhcha Nishchayam, and Operation Java. Which ones are your favourites? imdb.com/list/ls084605297…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/TejasNair
πŸ“…︎ Oct 31 2021
🚨︎ report
A MH-60S helicopter assigned to the β€œWildcards” of Helicopter Sea Combat (HSC) Squadron 23, flies over the Java Sea during routine operations. Nov. 13, 2021
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/PUTINKAAA
πŸ“…︎ Nov 18 2021
🚨︎ report
From the director of Operation JAVA.
πŸ‘︎ 62
πŸ’¬︎
πŸ‘€︎ u/zidism
πŸ“…︎ Sep 14 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.