code3 [개발자 기술 면접 대비] 🧠 메모리 구조의 네 가지 영역 설명 프로그램이 실행되기 위해서는 메모리에 적절히 로드되어야 하며,운영체제는 실행을 위해 RAM 내부를 네 가지 영역으로 나누어 관리합니다.이 네 가지는 바로 Code, Data, Heap, Stack 영역입니다.1️⃣ Code 영역기계어로 번역된 코드(함수, 명령어 등)가 저장되는 공간보통 읽기 전용으로 되어 있어 수정이 불가능CPU가 직접 이 영역을 읽어 명령을 실행🧩 예: C, Python 등에서 작성한 함수들의 기계어 코드2️⃣ Data 영역프로그램 실행 중 사용되는 전역 변수(Global variable) 및 정적 변수(Static variable)가 저장됨프로그램이 시작될 때 할당, 종료 시 해제초기화된 데이터와 초기화되지 않은 데이터를 나누어 관리하기도 함🧩 예: static int count.. 2025. 7. 25. [HackerRank] PlusMinus (python) Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero. Print the decimal value of each fraction on a new line with places after the decimal. Note: This challenge introduces precision problems. The test cases are scaled to six decimal places, though answers with absolute error of up to are acceptable. Example There are elements, two positive, two n.. 2022. 4. 9. [LeetCode] 1046. Last Stone Weight 1 Day 1 Commit Challenge! 오늘은 리트코드의 last stone weight 를 풀어보았다. 아직 파이썬에 익숙하지 않아 다양한 함수를 불러오는 데에 어려움이 많다. Last Stone Weight - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 리트 코드의 Easy 단계의 문제들을 계속 풀어나갈 예정이다. 해답은 이렇게 ... class Solution(object): def lastStoneWeight(self, stones): """ .. 2022. 4. 8. 이전 1 다음