개발 150

git. merge strategy

회사에서 merge 전략을 구분지어서 사용하고 있어서 관련 정책을 조사해보았다. - 개발 브랜치로 sync할때는 merge commit 권장 - 실제 운영으로 배포할때는 squash strategy 권장 1. create a merge commit - 가장 심플하게, 커밋 내역과 함께 merge commit이 생성 2. squash and merge - merge할 브랜치의 commit을 전부 하나의 commit으로 합친 후 타겟 브랜치에 병합 - 장점은 merge commit이 남아서 merge된 브랜치가 있었다는 것을 히스토리에서 알아볼 수 있음 - 단점은 merge된 브랜치의 변경 내역이 하나의 commit으로만 남기 때문에 어떠한 과정으로 변경되었는지에 대한 정보를 알 수 없음 3. rebase ..

개발 2023.10.24

jsp. 주석 종류 (클라이언트 미노출하고 싶다면 <%-- --%>)

jsp에서 주석을 달때, 화면단에 노출하지 않고 참고용으로만 작성할 수 있는 방법을 찾다가 한 번 정리해봤다. jsp관련글들은 구글에서 검색했을때 최신글들이 없다... 1. jsp 주석 서버에만 남아있고, 화면단에 노출 안된다. 클라이언트가 볼 수 없다. 2. java 주석 //주석내용 /* 주석내용 */ 서버에만 남아있고, 화면단에 노출 안된다. 3. html 주석 화면단에 노출된다. 출력결과에 포함된다. 참고 블로그 https://m.blog.naver.com/kimkwon429/220758472450 https://blog.naver.com/youseon97/222989973354

개발/자바 2023.10.24

[leetcode] 167. Two Sum II - Input Array Is Sorted 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Two Sum II - Input Array Is Sorted - LeetCode Can you solve this real interview question? Two Sum II - Input Array Is Sorted - Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two n leetcode.com 1차 풀이 단순하게 모..

[leetcode] 125. Valid Palindrome 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/valid-palindrome/ Valid Palindrome - LeetCode Can you solve this real interview question? Valid Palindrome - A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric cha leetcode.com neetcode 상에서 two pointers로 분류되어 있는 문제이다. 1차 풀이..

[leetcode] 128. Longest Consecutive Sequence 시간복잡도 O(n) 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/longest-consecutive-sequence/ Longest Consecutive Sequence - LeetCode Can you solve this real interview question? Longest Consecutive Sequence - Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in O(n) time. Example 1: Input: leetcode.com 1차 풀이 O(n)을 목표로 풀다가, O(nlogn..

[leetcode] 36. Valid Sudoku 풀이, 해설 (python)

[leetcode] 49. Group Anagrams 풀이, 해설 (python) 문제 링크 https://leetcode.com/problems/valid-sudoku/ Valid Sudoku - LeetCode Can you solve this real interview question? Valid Sudoku - Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: 1. Each row must contain the digits 1-9 without repetition. 2. Each c leetcode.com 스도쿠가 유효한지 확인하는 ..

[leetcode] 49. Group Anagrams 풀이, 해설 (python)

문제 링크 https://leetcode.com/problems/group-anagrams/ Group Anagrams - LeetCode Can you solve this real interview question? Group Anagrams - Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase leetcode.com 'eat','aet','tae' 등으로 동일한 캐릭터로 순서만 바꿔서 나왔을때, 해당 문자..

chatgpt 통해 백엔드 기술면접/임원면접 준비하기

이번에 기술면접 준비하면서, 막히는 질문들에 대해서 chatgpt의 도움을 많이 받았다. 관련해서, 어떻게 chatgpt에게 물어봤는지 기록하였다. (몇년 후에도 잘 써먹을 수 있길) 1. 가상면접 진행하는법 안녕 나는 6년차 백엔드 개발자로, 이커머스 기업 개발자로 지원하고 있어. 1차 기술면접을 진행예정인데 spring boot, mysql을 사용하고 있는 기업이야. 나와 면접을 진행해줘. 너가 물어보면 내가 하나씩 대답할게. 이렇게 하면, 나와 아래와 같이 가상면접을 진행한다. 2. 질문에 대한 개요 짜달라고 하기. 개발자 직무의 최종 임원 면접에서 '5년후의 목표'에 대한 답변을 1분 내용으로 일반적인 형식으로 개요를 짜줄래 ? 3. 답변 작성하다가 막히는 부분 물어보기 개발자로서 주인의식을 가지..

개발/꿀팁 2023.10.12

python. set 과 dict 차이

배경 알고리즘을 풀다보면, map과 같이 고유한 값만 가지도록 체크해야 하는 경우고 있는데, 그 경우 나는 항상 dict를 썼었다. 그러다가, 다음 유투브를 통해 set의 존재를 알게되었다. leetcode 풀이 > https://leetcode.com/problems/contains-duplicate/ LeetCode - The World's Leading Online Programming Learning Platform 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 http..

개발/파이썬 2023.10.05
반응형