Computer Science 썸네일형 리스트형 [LeetCode] 217. Contains Duplicate 목표없이 풀다보니 의지가 약해지는 것 같아 'data structure'로 묶인 문제를 풀기로 결정. https://leetcode.com/study-plan/data-structure/?progress=x0f8sqb1 Data Structure - Study Plan - LeetCode In computer science, a data structure is a way to store and organize data. During the computer programming process, identifying and using the appropriate data structure is an important task as it can improve the overall efficiency of th.. 더보기 프로젝트의 방향성이 모호할 때는 어떻게 해야할까 신규 프로젝트를 진행하다보면 자꾸 스펙이나 방향성이 틀어지는 경우가 생긴다. 구현하다 보니 이게 좋아보이고, 이렇게 하는게 더 나은것 같은데? 이러한 것들이 반복되면 수정하고 기존에 개발했던 것들을 갈아 엎는 경우가 생긴다. 그러다보면 점점 방향성이나 형상이 모호해진다. 그래서 무엇이 문제일까 고민하다 스스로 답을 내린 결론은 다음과 같다. 예전에는 몰랐던 초기에 상위 설계라는 것의 중요성을 깨닫게 된다. - 꼭 필요한 기능, 혹은 필수 요구 성능 또는 수치 등 - 실제 수행되는 시나리오는 어떻게 되는가 이러한 것들을 초반에 명확하게 설정하고 프로젝트를 진행해야 구현관점에서 무엇은 어디까지 하고말지 결정하기가 쉬워진다. 구현하는 사람이 너무 생각이 많아지면 그것 또한 고통이다. 본인이 잘 만들고 있는지에.. 더보기 [LeetCode] 26. Remove Duplicates from Sorted Array 기록 https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ Remove Duplicates from Sorted Array - 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 오름차순으로 정렬된 중복되는 숫자가 존재하는 array에서 중복 숫자를 제거하는 문제 제거 하는 문제는 일반적으로 뒤에서부터 루프를 돌아야 index 관리가 편하다. class Solution: def remo.. 더보기 [Python3] "[Errno 2] No such file or directory: 'gs'" 해결방법 PIL(pillow) 패키지로 ps 확장자 파일을 여는 도중 에러가 발생 [Errno 2] No such file or directory: 'gs' 찾아보니 gs라는 파일은 ghostscript로 어도비나 PDF 계열의 파일을 호환하는 소프트웨어(WIKI) 바로 패키지 매니저로 처리! yum install ghostscript 설치후 gs 명령어로 설치 확인 [ec2-user@ip-172-31-40-202 work]$ gs GPL Ghostscript 9.25 (2018-09-13) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for .. 더보기 [coursera]Introduction to Git and GitHub 강의 수강 기록 1주차 솔직히 Git이나 VCS에 대한 기본 개념은 있기 때문에 1주차는 거의 놀면서 들었다.(개꿀) 주로 정의에 대해 나오는데 평소에 들어본적 없는 단어 정리 working tree: 우리가 작업하는 일반 폴더 index: working tree에서 저장소로 올리기 전에 기록하는 공간 staging: index에 파일 상태를 기록하는 것, commit 전에 staging area에 변경사항이 있어야함 git directory: 마치 데이터베이스처럼 동작하며 Git의 모든 변경사항을 트래킹 한다 과제도 그냥 따라하기만 하면 끝! 2주차 내가 이미 아는 내용은 패스하고 몰랐던 내용 중 유용해 보이는 것만 정리 commit -a: tracking하고 있는 파일에 변화가 있을 경우 모두 add하고 commit.. 더보기 [LeetCode] 21. Merge Two Sorted Lists 기록 https://leetcode.com/problems/merge-two-sorted-lists/description/ Merge Two Sorted Lists - 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 두개의 linked list를 sorting하면서 합치는 문제 일단 적나라한 실력 테스트를 위해 그냥 풀었다. # Definition for singly-linked list. class ListNode: def __init__(self, val=0, ne.. 더보기 [LeetCode] 151. Reverse Words in a String 기록 https://leetcode.com/problems/reverse-words-in-a-string/ Reverse Words in a String - 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 단어들을 뒤집는 문제로 스페이스 처리가 약간 귀찮은 문제이다. 일단 기능적으로 돌아가기만 하도록 빨리 짜봄 class Solution: def reverseWords(self, s: str) -> str: words = [] word = '' for c in s: i.. 더보기 [LeetCode] 20. Valid Parentheses 기록 https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - 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 괄호가 있는 input이 valid한지 판별하는 문제이다. 앞에서 열었던 괄호들을 FILO로 처리해야 하므로 stack을 통해서 구현하면 되겠다 생각 파이썬에서는 스택이 필요하면 리스트를 사용한다. push는 appned()로 pop은 pop()으로 사용 대응하는 무엇인가를 찾는일이므로 참조테이.. 더보기 이전 1 2 3 4 5 ··· 12 다음