| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- aws
- 코딩테스트준비
- HTML
- Python
- 항해99
- 프로그래머스
- nestjs
- 99클럽
- 방송대컴퓨터과학과
- 개발자취업
- 파이썬프로그래밍기초
- node.js
- 유노코딩
- 코딩테스트
- 데이터베이스시스템
- CSS
- 꿀단집
- JavaScript
- 중간이들
- TiL
- Azure
- 방송대
- 파이썬
- Git
- 클라우드컴퓨팅
- 코드잇
- 엘리스sw트랙
- 오픈소스기반데이터분석
- mongoDB
- redis
- Today
- Total
목록분류 전체보기 (243)
배꼽파지 않도록 잘 개발해요
공식을 찾으면 간단히 풀 수 있다.하지만 나는 이렇게 안 풀었다. 추후 업로드 예정import mathclass Solution: def arrangeCoins(self, n: int) -> int: k = int((-1 + math.sqrt(1 + 8 * n)) // 2) return k
/** * @param {number[]} nums * @return {number} */var missingNumber = function(nums) { let n = nums.length; // 배열의 길이 let arr = []; // 0부터 n까지 있는 배열 // 0부터 n까지 찾기 for (let i = 0; i !nums.includes(el))};
현재 NestJS, MySQL, TypeORM을 사용하는 프로젝트를 진행하고 있다. 구현 중 발생한 오류와 진행상황을 문서화할 계획이다. 우선 MySQL과 TypeORM을 config 폴더 안에 orm.config.ts 파일을 만들어서 설정을 해준다. NestJS에서 TypeORM와 MySQL의 세팅은 다음 링크를 참조하였다. https://codegear.tistory.com/116 1. TypeORM 개념과 셋팅 (2023, NestJS)이 글은 TypeORM의 기본적인 개념에 대해 설명하고, 샘플 소스를 통해 TypeORM의 기본적인 사용법에 대해 설명합니다. 이 글의 동영상 강의를 보고 싶으시면 아래를 클릭하세요. https://youtu.be/yzsN620ZYpcodegear.tistory...
function solution(priorities, location) { // 큐를 우선순위와 인덱스를 포함하는 배열로 반환 let queue = priorities.map((priority, idx) => ({ priority, idx })); console.log(queue)// [// { priority: 2, idx: 0 },// { priority: 1, idx: 1 },// { priority: 3, idx: 2 },// { priority: 2, idx: 3 }// ] let printOrder = 0; // 몇 번째로 실행되는지 카운트 while (queue.length > 0) { let current = queue.shift..
function solution(park, routes) { // 방향을 벡터 이동으로 매핑 const directionMap = { 'N': [-1, 0], // 북쪽: x축 -1, y축 변화 없음 'S': [1, 0], // 남쪽: x축 +1, y축 변화 없음 'W': [0, -1], // 서쪽: x축 변화 없음, y축 -1 'E': [0, 1] // 동쪽: x축 변화 없음, y축 +1 }; // 시작 위치 찾기 let startX, startY; for (let i = 0; i = park.length || // 공원을 벗어나는지 확인 newY = park[0].length |..
function solution(wallpaper) { // 핵심 : 가장 왼쪽에 있는 좌표, 가장 오른쪽에 있는 좌표 구하면 끝! let left1 = 100; let left2 = 100; let right1 = -1; let right2 = -1; // [left1, left2, right1, right2] for (let i = 0; i
Find if Path Exists in Graph출처 : LeetCodeThere is a bi-directional graph with n vertices, where each vertex is labeled from 0 to n-1 (inclusive). The edges in the graph are represented as a 2D integer array edges, where each edges[i] = [ui, vi] denotes a bi-directional edge between vertex ui and vertex vi. Every vertex pair is connected by at most one edge, and no vertex has an edge to itself. Y..
광복절을 맞이하여 코딩테스트 스터디를 운영하는 항해99에서 이벤트를 진행하였다. 주제인 광복절과 어울리는 아스키 아트 그림 한 장을 그려서 제출하는 것이었다. 할일은 많지만 이벤트에 참여하고 싶어서 한 개 만들어 보았다.만든 과정은 다음과 같다. 이미지 출처 :https://blog.naver.com/PostView.nhn?blogId=jaidream4130&logNo=221610868183 처음에는 태극기, 무궁화, 독립기념물 등 광복절의 상징이 모두 담겨있는 서대문 독립공원을 갖고 그림을 그리려고 했다.하지만 이걸 아스키코드로 변환하였을 때 생각보다 원하는 만큼 또렷하게 나오지 않아서 다른 걸로 바꿨다.우선 아스키코드로 변환하기 이전에 Artguru한테 이 그림의 화풍을 명화처럼 바꿔달라고 해봤다. ..
Find Center of Star Graph출처 : LeetCodeThere is an undirected star graph consisting of n nodes labeled from 1 to n. A star graph is a graph where there is one center node and exactly n - 1 edges that connect the center node with every other node. You are given a 2D integer array edges where each edges[i] = [ui, vi] indicates that there is an edge between the nodes ui and vi. Return the center of ..
Array Partition출처 : LeetCodeGiven an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all i is maximized. Return the maximized sum. Example 1: Input: nums = [1,4,3,2]Output: 4Explanation: All possible pairings (ignoring the ordering of elements) are:1. (1, 4), (2, 3) -> min(1, 4) + min(2, 3) = 1 + 2 = 32. ..