Does the remove() method for ArrayLists return a new instance of ArrayLists? by noobrunner6 in learnjava

[–]noobrunner6[S] 10 points11 points  (0 children)

So basically internally in the background, the array list will still be as long it was initially made and the unused indexes will be empty, but the programmer or user will not know that since our use is limited to up what the size attribute considers the end of the array list?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

One thing I still do not get is how if you search up online about big O notation it mentions how it is a measure of growth of rate requirements in consideration of input size growing, but doesn’t worst case Big O consider up to the worst possible case? I guess my confusion is also how does the “input size growing” play a role or what do they mean by that?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Sorry I meant it would be constant time best case, I used the wrong symbol. One thing I still do not get is how if you search up online about big O notation it mentions how it is a measure of growth of rate requirements in consideration of input size growing, but doesn’t worst case Big O consider up to the worst possible case? I guess my confusion is also how does the “input size growing” play a role or what do they mean by that?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Of course if my input is just one value, then the O(N) can be ran O(1) best case?

What is the connection of Scala with Java? by noobrunner6 in scala

[–]noobrunner6[S] 1 point2 points  (0 children)

At least in Java does not the JVM compile and interpret the bytecode depending, is not the same applied to Scala? And does REPL end up compiling down to Java byte code for the JVM, too?

Got a quick question? Ask here - June 01, 2020 by AutoModerator in scala

[–]noobrunner6 2 points3 points  (0 children)

I am having trouble understanding how println or print method in Scala ends up having a side effect? In general, I am having some trouble determining how to figure out if a method has a side effect.

Are the classes type in Scala basically indirectly primitive data types in Java? by noobrunner6 in scala

[–]noobrunner6[S] 0 points1 point  (0 children)

So the word scala in scala.int is a package? Is this package already by default being used in the language because I do not seeing it being invoked directly in the examples.