« first day (4105 days earlier)      last day (827 days later) » 

12:00 AM
A bug in the code is worth two in the documentation. (source)
 
12:55 AM
nods off
 
 
4 hours later…
4:58 AM
 
 
2 hours later…
7:04 AM
posted on January 18, 2022

 
 
6 hours later…
12:39 PM
@SeanDuggan Why Java 11? Why not use the latest version?
 
12:56 PM
@Michael My company has strict policies on what software we can install. Java 11 is the latest version that security has cleared.
 
 
1 hour later…
2:17 PM
@SeanDuggan Did you configure your Eclipse project to target Java 11? Eclipse has its own Java compiler built into it. It sounds like your project is configured to target the latest version that Eclipse supports (Java 16), and it is using the built-in compiler to build the project.
 
 
2 hours later…
4:28 PM
hi guys I have a questio
 
I've heard this somewhere... :P
 
ah there it is :P
 
4:44 PM
@SeanDuggan That's not the place I'm thinking of. There is a place in the project settings where you tell Eclipse which version of Java your code uses.
 
 
1 hour later…
5:44 PM
If I have a method that is using 2 other methods, how do I calculate its BigO? [Time and Space]
Do i just use the biggest of them all?
 
It may depend on what scale you're operating at. Traditionally, Big O gets simplified down to the largest exponent (so if you're algorithm is O(3n^3 + n^2 +5n), it just gets expressed as O(n^3) since, as the numbers get higher, the other items become less important).
 
@SeanDuggan Thanks!
 
Of course, they might combine depending on how you do things. If your outer method has an O(n) operation (maybe looping through the set) with an O(n^2) and an O(n) operation on each item, that might be considered an O(n^3) overall.
 
6:16 PM
and what about space? if i don't initialize any new arrays or doing recursive calls its 1
right?
 
If you're reusing the same space every time (say, for every item in the array, you use the same n x n space rather than allocating a new one), then yes, it does not combine in the same way. On the other hand, if you are storing n different nxn spaces, then it is n^3 space.
 

« first day (4105 days earlier)      last day (827 days later) »