What is the Operating System?

Operating System is software that users need to use a computer. The operating system acts as an intermediary between the hardware and software, managing resources, providing a user interface, and facilitating communication between different components of the computer system. A Typical Operating System is: Windows, Linux, Mac OS Windows Windows, developed by Microsoft, is the most widely used OS for personal computers, known for its user-friendly interface and extensive software compatibility....

Oct 22, 2021 · 4 min · Jaehyun Hong · OS

Summary of HashMap

A HashMap is a data structure that allows for finding values in constant time O(1) on average by mapping keys to indices via a hash function. Core Structure and O(1) Principles (JDK 8) A HashMap maps a key to a ‘hash code’, which then points to an array index. Array-based Access: Direct access to array indices via hash function provides O(1) performance. Collision Resolution (Chaining): If multiple keys map to the same index, they are stored in a Linked List....

Notes from Digging into Arrays

What is the best data structure to store data? I think it is Array. The reason why an array is fast is simple. It can go directly to the memory address. The main thing about an array is that data is saved side by side in memory. For example, if you make an int array, the computer takes one big empty space in memory all at once for the whole size....

Java Collections and Generics I Actually Use

When storing multiple items in Java, basic arrays have a lot of limits. Once you set the size of an array, you cannot change it, and you have to write your own code to add or remove items in the middle. That is why we use Collection. The size grows automatically, and features like adding, removing, sorting, and searching are already built in, so it is much easier to use....

Parts of this were translated using AI, so excuse any robot vibes.