Home
My Technical Diary
Cancel

LeetCode - 198. House Robber

198. House Robber - easy 문제 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing ...

OS - 메모리 관리 전략

메모리 관리 전략 베경 스와핑 연속 메모리 할당 세그먼테이션 페이징 페이지 테이블 구조 배경 기본 하드웨어 시스템이 올바르게 동작하기 위해서는 사용자 프로그램으로 부터 OS 영역을 보호해야한다. 다중 사용자 시스템인 경우 추가적으로 다른 사용자 프로그램이 특장 사용자 프로그램을 접근하는 것을 막는...

LeetCode - 897. Increasing Order Search Tree

897. Increasing Order Search Tree - easy 문제 Given a binary search tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no l...

LeetCode - 551. Student Attendance Record I

551. Student Attendance Record I - easy 문제 You are given a string representing an attendance record for a student. The record only contains the following three characters: ‘A’ : Absent. ‘...

Casting

Casting C++는 const_cast() , static_cast() , dynamic_cast() , reinterpret_cast라는() 라는 네 가지 캐스팅 방법을 제공한다. const_cast() const_cast()는 변수에 const속성을 추가하거나 제거할 때 사용한다. 정석대로 처리하려면 프로그램 전체에서 const로 정의...

OS - 교착상태

교착상태 개요 시스템 모델 교착상태의 특정 교착상태 처리 방법 교착상태 예방 교착상태 회피 교착상태 탐지 교착상태로부터 회복 개요 다중프로그래밍 환경에서는 여러 프로세스들이 한정된 자원을 사용하려고 서로 경쟁할 수 있다. 한 프로세스가 자원을 요청했을때, 짱원ㄴ을 사용할 수 없는 상활이...

LeetCode - 617. Merge Two Binary Trees

617. Merge Two Binary Trees - easy 문제 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not. ...

LeetCode - 429. N-ary Tree Level Order Traversal

429. N-ary Tree Level Order Traversal - medium 문제 Given an n-ary tree, return the level order traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order ...

LeetCode - 515. Find Largest Value in Each Tree Row

515. Find Largest Value in Each Tree Row - medium 문제 You need to find the largest value in each row of a binary tree. 제한사항 입출력 예 Example : Input: 1 / \ 3 2 ...

LeetCode - 1319. Number of Operations to Make Network Connected

1319. Number of Operations to Make Network Connected - medium 문제 There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [...