본문 바로가기

분류 전체보기

(62)
[오픈소스/srs] 1. 오픈소스 도커 디버깅 기본 환경 설정 이런 것에 대한 정보를 담고 있다오픈소스 SRS에서 권장하는 방식으로 도커로 디버깅 준비 하는 법VSCode를 통해 Docker 안에서 디버깅을 하는 법오픈소스 기여를 하기위해 이슈를 고르는 법이런 것에 대한 정보는 담겨있지 않다vs코드 remote ssh 사용법1. 오픈소스 SRS 기여를 위한 디버그 환경 설치개발자가되면 계속해서 하고 싶었던 오픈소스 기여를 하기위해 하고있는 일들을 블로그로 적으려고한다. 일단 프로젝트는 SRS라는 미디어 서버를 선택했다. 미디어 자체에 관심이있고 많이 해보고 싶다 보니 고르게 됐고. 나름 규모있는 프로젝트여서 초보자가 들어가기 위한 가이드같은게 마련되어있어서 고른 것도 있었다. SRS는 프로젝트 적으로 도커에서 실행하는 것을 권장하는 특징이 있었다. 난 처음에 여기부..
[Leetcode 465번 문제] 465. Optimal Account Balancing 문제 상황You are given an array of transactions transactions where transactions[i] = [fromi, toi, amounti] indicates that the person with ID = fromi gave amounti $ to the person with ID = toi.Return the minimum number of transactions required to settle the debt.transactions 배열이 주어진다 각 요소는 a부터, b까지 c만큼 라는 뜻, a, b 는 ID고 c는 달러다.debt를 내지 않기 위해서 필요한 가장 작은 transaction의 수를 구하여라Input: transactions = [[0,1,1..
[Leetcode 2601번 문제] 2601. Prime Subtraction Operation 문제 상황You are given a 0-indexed integer array nums of length n.You can perform the following operation as many times as you want:Pick an index i that you haven’t picked before, and pick a prime p strictly less than nums[i], then subtract p from nums[i].Return true if you can make nums a strictly increasing array using the above operation and false otherwise.A strictly increasing array is an array..
[Leetcode 2955번 문제]2955. Number of Same-End Substrings 문제 상황You are given a 0-indexed string s, and a 2D array of integers queries, where queries[i] = [li, ri] indicates a substring of s starting from the index li and ending at the index ri (both inclusive), i.e. s[li..ri].각각의 쿼리가 subarrayReturn an array ans where ans[i] is the number of same-end substrings of queries[i].same-end?A 0-indexed string t of length n is called same-end if it has the same..
[Leetcode 3133번 문제] 3133. Minimum Array End 문제 상황You are given two integers n and x. You have to construct an array of positive integers nums of size n where for every 0 greater than nums[i], and the result of the bitwise AND operation between all elements of nums is x.Return the minimum possible value of nums[n - 1].n과 x가 주어진다, 배열을 만들어야한다 정수배열 n의 크기를 갖는 nums를 만든다.그 특징은 왼쪽보다 오른쪽이 항상 크다.nums의 배열의 모든 요소 사이의 AND가 x이다.모든 가능한 nums[n - 1]의 값중 가..
[Leetcode 1829번 문제] 1829. Maximum XOR for Each Query 문제 상황You are given a sorted array nums of n non-negative integers and an integer maximumBit. You want to perform the following query n times:Find a non-negative integer k maximized. k is the answer to the ith query.Remove the last element from the current array nums.Return an array answer, where answer[i] is the answer to the ith query.배열이 존재하고 특정한 정수 maximumBit이 있다. 이하의 작업을 n번 반복한다처음부터 끝까지의 요소를..
[Leetcode 2275번 문제] 2275. Largest Combination With Bitwise AND Greater Than Zero 문제 상황The bitwise AND of an array nums is the bitwise AND of all integers in nums.For example, for nums = [1, 5, 3], the bitwise AND is equal to 1 & 5 & 3 = 1.Also, for nums = [7], the bitwise AND is 7.You are given an array of positive integers  candidates.Evaluate the bitwise AND of every combination of numbers of candidates. Each number in candidates may only be used once in each combination.조..
EC2-NGINX-도커-젠킨스 설정 이런 것에 대한 정보를 담고 있다젠킨스를 설정하는 법.젠킨스를 도커 안에서 여는 법EC2 속 젠킨스를 운영하는법.엔진엑스와 도커 연결작업 간 이슈이런 것에 대한 정보는 담겨있지 않다젠킨스 CD하는법 (아직 안 함)1. 젠킨스를 설정하는 법.젠킨스는 보통 커밋, 푸시와 이에 대한 통합과 배포를 자동화하는 것으로 유명하다. 그리고 생각보다 처음 접근할때 어렵게 느껴지는 내용중 하나다. 하지만 막상 하나씩 떼어놓고 보면 우리가 의식으로 해석하는데 어려움이 없다1. 1 젠킨스는 어디에 위치하냐.통합과, 자동화라는 측면에서만 해석한다면 젠킨스는“서로 다른 환경에서 프로젝트의 버전 차이를 인식하고 사람이 손쓰기 전에 통합한다.“라고 정의할 수 있겠다.즉 젠킨스는 서로다른 개발환경 사이에 위치한다. 그리고 커밋같은 ..