본문 바로가기

전체 글

(154)
ESLint와 React 안정성 에러 - Enforce a specific function type for function components (react/function-component-definition) Error Name 다음과 같은 에러가 발생하였다. "Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “TabButtons” and pass data as props react/no-unstable-nested-components" 발생 fun..
ESLint 자동 변환 이슈(에러) 발생 //1 const Test = () => { return test; }; //2 function Test() { return test; } 현재 프로젝트에 Test 컴포넌트를 1번과 같이 선언했을 때, 2번 코드로 바뀌는 현상이 있었다. 본래 우리 팀은 최상위 컴포넌트는 2번으로 그 외 컴포넌트는 1번으로 짜는 팀 내 규정이 있었는데, 이 때문에 찾아보게되었다. 원인 원인은 기존 프로젝트와 달리 airbnb style을 적용해서 그렇다. ESLint는 2번 style을 기준으로 잡고 그 외는 틀린 것으로 처리하여 자동으로 변환해준다. 해결법 "react/function-component-definition": [, { "namedComponents": "function-declaration" | "..
신년 1분기 계획 신년에 내가 하고자하는 일은 아래와 같다. 1분기 일단 운영 잘되면 좋겠다. 개인 프로젝트 운영하기 - FullStack : React + Node.js - 목적 : 실시간 기능을 포함한 블로그 + 심리테스트 사이트 제작 및 배포 - 얻고자 하는 경험 : graphQL, Node.js(or Next.js), React, atomic design pattern, DB(미정) - 프로젝트 개발일지 작성하기 업무 충실히 - 기존 프로젝트 리팩토링 - 새로운 더미프로젝트 잘 만들기 - 팀 체계적으로 운영하기 개인공부 - 주에 한 번 정도 틈틈이 CS 공부하기 - 주에 한 번 정도 JS로 Algorithm 풀기 - 관련 서적 독서 꾸준히 하기 - 웨비나 등 정보를 획득할 수 있는 세미나 꾸준히 참여하기 - 정보처..
알고리즘 공부목록 자료구조 해쉬 스택 큐/ 우선순위 큐 트리 힙 연결리스트 알고리즘 Greedy 알고리즘 DP 알고리즘 정렬( 퀵, 카운팅, 삽입 등) 알고리즘 부분합 알고리즘 이진탐색 알고리즘 (+BST) 최단경로 (다익스트라) 알고리즘 그래프 탐색 알고리즘 투포인터 / 슬라이딩 윈도우 기법 완전 탐색 & 백트래킹 기법 Brute Force 순열/ 조합 DFS/ BFS 재귀 심화 위상 정렬 분할-정복 알고리즘 최단경로 (플로이드-워셜, 최소-비용 신장 트리) 알고리즘 Red-Black Tree 알고리
[python] Leetcode 46. Permutations https://leetcode.com/problems/permutations/ Permutations - 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 문제 소개 요약: 숫자 배열에 대하여 모든 순열을 구하시오 관련 토픽(알고리즘, 라이브러리) : dfs Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Code & 설명 def permute(self, nums): gl..
[python] Leetcode 49. Group Anagrams https://leetcode.com/problems/group-anagrams/ Group Anagrams - 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 문제 소개 요약: 애나그램이 같은 문자열끼리 묶은 값 이중배열을 반환하시오 관련 토픽(알고리즘, 라이브러리) : sorting , Hash Table Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["at..
[python] Leetcode 17. Letter Combinations of a Phone Number https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ Letter Combinations of a Phone Number - 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 문제 소개 요약: 특정 휴대폰 숫자를 눌렀을 때, 나올 수 있는 모든 알파벳 조합을 반환하시오 관련 토픽: DFS 후기: DFS를 이용해서 쉽게 풀 수 있었다. Code & 설명 def letterCom..
밀린 숙제가 너무 많다. 생각보다 공부한 게 너무 많은데.. 정리를 하고 기록은 안해둔 게 너무 많다.. 특히, 알고리즘.. 이번년도는 거의 알고리즘만 공부한 느낌이다 기록을 철저하게 해야하는데 아쉽다. 올 해 목표는 해가 끝나기 전, 밀린 숙제를 모두 정리하는 것이다. 그리고 좀 개인 프로젝트 좀 해야겠다. 너무 알고리즘, CS만 공부해서 슬슬 녹슬 거 같다..