알고리즘/해커랭크(2)
-
[해커랭크] [Easy] Java List
For this problem, we have types of queries you can perform on a List: Insert y at index x : Insert x y Delete the element at index : Delete x Given a list, L, of N integers, perform Q queries on the list. Once all queries are completed, print the modified list as a single line of space-separated integers. Input Format The first line contains an integer, N (the initial number of elements in L). T..
2021.05.25 -
[해커랭크] [Easy] Java 1D Array
An array is a simple data structure used to store a collection of data in a contiguous block of memory. Each element in the collection is accessed using an index, and the elements are easy to find because they're stored sequentially in memory. Because the collection of elements in an array is stored as a big block of data, we typically use arrays when we know exactly how many pieces of data we'r..
2021.03.10