목록전체 글 (55)
5 DERECHA
Linux is a free and open-ource operating system that powers everything from smartphones and home appliances to servers and supercomputers. It was created in 1991 by Linus Torvalds, who wanted to build a Unix-like system that could run on personal computers. Today, Linux is widely used by developers, system administrators, and enthusiasts around the world, thanks to its flexibility, security, and..
Intuition & Approach In this problem, they gave us two parametes which are vectory array 'the weights of persons' and an integer which is the maximum weight that boat can carry. And what we need to return is the minimum number of boats to carry every given person. So, In navie thinking, we could check all the persons in people array whether they can share their boat with anoterh person or not. H..
(1) ARM Mode (2) Bit (3) mode Change CPSR ( Current Program Status Register ) Figures representing various CPSRs 1. Pipleline when PC value changes When the pc is in the execute stage, the PC contains the next address of the original pc. Therefore, if an exception occurs at the time of the service, the address included in the LR is -4Byte of the current address. Of course, it's a story in ARM mo..
(1) Integrated circuit IC stands for "integrated circuit," which is a miniaturized electronic circuit that can be used to perform various functions in electronic devices. One common type of IC that uses flip-flops and latches is a "sequential logic circuit." A flip-flop is a circuit that can store a single bit of information, either a 0 or a 1. There are several different types of flip-flops, bu..
1. Real Mode When a computer boots up, the CPU starts executing code from a specific memory location called the reset vector. This location is typically set to the beginning of the system's BIOS firmware, which is responsible for initializing hardware devices and providing basic system services. During the boot process, the CPU starts in a mode called real mode. In this mode, the processor is li..
1. CoordinatesQueue이런식으로 만들고 나중에 q라고 함2. vector에다가 push_back안하고 push라고 함 or pq에다가 push함 top해야하는3 Intuition C++ is a widely used programming language that is known for its efficiency and power. However, even experienced programmers can make mistakes when writing code in C++. One common area where programmers may struggle is with grammar, as C++ has a complex set of rules and conventions that mus..
Design patterns are general reusable solutions to commonly occurring problems in software design. They are a set of proven solutions that can be used to solve problems in a particular context, and they can be applied in a wide range of situations. Design patterns provide a shared language and conceptual framework for software developers to communicate and collaborate effectively. There are three..
1) using unordered_map Time Complexity : O(n) class Solution { public: ListNode *detectCycle(ListNode *ptr) { unordered_map hash; while(hash[ptr]==0){ if(ptr==NULL) return NULL; hash[ptr]=1; ptr = ptr->next; } return ptr; } }; 2) using unoredered_set Time Complexity : O(n) class Solution { public: ListNode *detectCycle(ListNode *ptr) { unordered_set hash; while(hash.count(ptr)==0){ if(ptr == NUL..