전체 글53 std::expected를 이용한 효과적인 에러처리 https://en.cppreference.com/cpp/utility/expected class expected; (1) (since C++23) template requires std::is_void_v class expected ; (2) (since C++23) The class template std::expected provides a way to represent either of two values: an expected value of t" data-og-host="en.cppreference.com" data-og-source-url="https://en.cppreference.com/cpp/utility/expected" data-og-url="https://en.cppreferenc.. 2026. 10. 1. 프로세스의 가상주소는 어떻게 보호되는가 가상주소란 CPU가 바라보는 논리 주소(Logical Address)와 실제 물리적 RAM의 위치를 분리하여, 각 프로세스가 "자신만의 독립된 거대한 메모리 공간을 통째로 쓰고 있다"는 착각(가상화)을 하게 만든다.모든 프로세스는 가상 메모리 구조상에서 동일한 시작 주소(예: 0x00000000 또는 낮은 주소 영역)부터 시작하여 메모리를 할당받습니다. 다만 프로그래머들은 이러한 주소영역을 침범할 수 있음에도 안전하게 공존할 수 있는 이유는 하드웨어와 운영체제의 주소공간의 설계방식때문이다. 이 포스팅에서는 파티션 분할과, 베이스 레지스터 두 설계방식이 어떻게 가상 주소공간을 보호하고 있는지 작성한다.1. 파티션 분할을 통한 영역 보호 (페이지 테이블과 권한 격리)현대 운영체제는 각 프로세스마다 독립된 페.. 2026. 9. 23. [leet_code] 915. 랜덤피벗과 호어분할을 이용한 퀵정렬(quick sort) 개선 https://leetcode.com/problems/sort-an-array/description/ Sort an Array - LeetCodeCan you solve this real interview question? Sort an Array - Given an array of integers nums, sort the array in ascending order and return it. You must solve the problem without using any built-in functions in O(nlog(n)) time complexity and with the smallesleetcode.com NLogN의 시간복잡도를 가지는 여러 정렬 알고리즘을 테스트할 수 있는 문제이다.이 중.. 2026. 8. 20. [leet_code] 15. '3Sum' TwoPointer 기법을 활용한 시간복잡도 개선 https://leetcode.com/problems/3sum/description/ 3Sum - LeetCodeCan you solve this real interview question? 3Sum - Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duleetcode.com 세 원소를 더했을 때 Sum이 0이어야한다는 조건속에서 완전탐색이 필수적인 조건이라 생각하여, 작성한 초안 코드는 아래.. 2026. 8. 6. 이전 1 2 3 4 ··· 14 다음