
리트코드 - 128. Longest Consecutive Sequence출처 - https://leetcode.com/problems/longest-consecutive-sequence/ 문제 설명정렬되지 않은 정수 배열이 주어지면 가장 긴 연속 요소 시퀀스의 길이를 반환합니다.O(n) 시간에 실행되는 알고리즘을 작성해야 합니다. 풀이코드class Solution { public int longestConsecutive(int[] n) { Set set = new HashSet(); for (int i = 0; i 코드설명시간복잡도 O(n) 시간 내에 연속하는 가장 긴 수를 찾아야 한다.단순히 하나씩 반복문을 돌려서 찾기엔 O(n * n)번이 걸릴 것이다. 그럼 Arrays..

도커는 환경의 제약 없이 어디서나 동일하게 동작하도록 하는 오픈소스 컨테이너 기술입니다.컨테이너 기술은 뭐고 왜 환경의 제약을 받지 않는 것이 필요할까요?기존의 방식기존에는 한 대의 서버에서 한 개의 어플리케이션을 운영하거나 혹은 여러개의 어플리케이션을 운영했습니다.이런 방식의 경우 각각의 애플리케이션이 사용하는 리소스를 제어하기 힘든 문제가 있습니다.전체를 같이 사용하기 때문에 여분의 리소스가 남아도 활용할 수 없고, 특정 애플리케이션이 리소스를 과도하게 점유해서 전체 서버가 중단되면 다른 애플리케이션도 같이 중단되는 문제가 발생할 수 있습니다.Virtual Machine이를 극복하기 위해 가상머신이 도입되게 되었는데요.한 대의 서버에서 여러개의 운영체제를 실행시키고, 이 운영체제 안에서 각각의 어플리..

7일차 예문Interested in fascinating local events and influenced by a desire to help, the management decided to hire a catering company , advertise a luncheon for charity, and attract a couple of celebrities from out of town to attend.After a significant mix-up in the booking system and flexible fee structures, the event was canceled at the last-minute, forcing the company to issue refundable amounts..

리트코드 - 73. Set Matrix Zeroes출처 - https://leetcode.com/problems/set-matrix-zeroes/description/?envType=study-plan-v2&envId=top-interview-150 문제 설명m x n 정수 행렬이 주어지면 요소가 0이면 전체 행과 열을 0으로 설정합니다.배열 안에서 해야 합니다. 풀이코드class Solution { public void setZeroes(int[][] matrix) { int n = matrix.length; int m = matrix[0].length; boolean firstRowZero = false; boolean firstColZero =..

6일차 예문Expand your annual budget to promote growth and cut back on unnecessary expenses; set aside funds to accommodate the increased workload, and consider renting additional space.Due to the broken equipment, we had to postpone the project, which caused inconvenience in our neighborhood and turned out to be more expensive than planned; we must deal with it in time.Our company decided to special..

5일차 예문Check out the community's new facility and experience the benefits of the recent remodeling; in the meantime, be sure to confirm your reservation, and do not replace any equipment until the warranty issue is resolved.I need to figure out how to put together an assorted recipe collection for our upcoming promotion, while also finding a contractor to install the lease and reject inadequate p..