We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
First of all your algo uses Scanner. Using BufferedReader will improve performance of your algorithm. Secondly ArrayList is just a wrapper for Object[] and System.arraycopy is a native method.
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
First of all your algo uses
Scanner
. UsingBufferedReader
will improve performance of your algorithm. SecondlyArrayList
is just a wrapper forObject[]
andSystem.arraycopy
is a native method.