생각의 표현들

Spring

객체지향의 4가지 특징

스프링 입문을 위한 자바 객체지향의 원리와 이해를 읽다 개발자라면 꼭 알고있어야 하는 객체지향에대해 기록하면 좋을것 같아 글을 작성하게 되었습니다. 우선 객체지향의 4가지 특징은 아래와 같습니다. 캡슐화 : 정보 은닉 상속 : 재사용 + 확장 추상화 : 모델링, 클래스 설계 다형성 : 사용편의성 책에서는 위 4가지 특성을 아래와 같이 표현하고 있습니다. 캡! 상추다 오늘은 이 4가지 특성을 조금 더 자세히 알아보겠습니다. 추상화 객체지향의 추상화는 곧 모델링이다. 이 글을 읽자마자 알고는 있었지만 설명하기에 복잡하고 불안하게 알고있던 추상화라는 개념을 정말 잘 표현했다고 생각이 들었습니다. 우리는 객체를 활용해서 프로그래밍을 합니다. 그 객체를 사용하려면 클래스가 필요합니다. 그리고 클래스는 객체의 모델..

LeetCode

[LeetCode] 909. Snakes and Ladders [도전중]

LeetCode - The World's Leading Online Programming Learning Platform 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 뱀과 사다리가있는 Board가 주어집니다. 출발지는 왼쪽 최하단이고 목적지는 n*2입니다. n*2에 도달하는데 필요한 최소이동수를 반환합니다. 만약 n*2에 도달할 수 없다면 -1을 반환합니다. Example 1: Input: board = [ [-1,-1,-1,-1,-1,-1], [-1,-1,-1,-1,-1,-..

LeetCode

[LeetCode] 133. Clone Graph

LeetCode - The World's Leading Online Programming Learning Platform 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 연결된 방향이 없는 그래프에서 노드의 참조가 주어집니다. 그래프의 복제본을 반환합니다. 그래프의 각 노드는 값(int)과 이웃 노드의 목록(List[Node])을 포함합니다. Example 1: Input: adjList = [[2,4],[1,3],[2,4],[1,3]] Output: [[2,4],[1,3],[2..

LeetCode

[LeetCode] 373. Find K Pairs with Smallest Sums

Find K Pairs with Smallest Sums - LeetCode Can you solve this real interview question? Find K Pairs with Smallest Sums - You are given two integer arrays nums1 and nums2 sorted in non-decreasing order and an integer k. Define a pair (u, v) which consists of one element from the first array and one leetcode.com 오름차순 정렬된 두 개의 정수 배열 nums1과 nums2와 정수 k가 주어집니다. 첫 번째 배열의 원소 1개와 두 번째 배열의 원소 1개로 구성된 쌍(u..

Sol b
'분류 전체보기' 카테고리의 글 목록 (13 Page)