Можно ли как-то попроще реализовать этот алгоритм, например, сразу рисовать кривую?
Культура питья - это не про пить в меру. А про - пить если хочется, но не переходить черту там, не заканчивается человек, и начинается свинья.
особенно если я пью и спокойно бегаю полумарафоны
Вы видимо считаете что если ему 17+ лет он не знает таких вещей?)
Не идиализируйте людей
выделений на что?
Each ArrayList instance has a capacity. The capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size. As elements are added to an ArrayList, its capacity grows automatically. The details of the growth policy are not specified beyond the fact that adding an element has constant amortized time cost.
An application can increase the capacity of an ArrayList instance before adding a large number of elements using the ensureCapacity operation. This may reduce the amount of incremental reallocation.
Intel Pentium n4200 1.10 GHzэто даже ниже минимальных требований к hardware(процессор) VS.
NVIDIA Geforce m810
ОЗУ: 4 гб
как вы сейчас определяете что строка полная?