ALL
151. Reverse Words in a String
Reverse Words in a String - LeetCode Can you solve this real interview question? Reverse Words in a String - Given an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in s will be separated by at least one space. Return a strin leetcode.com 내 풀이 /* [문제] - 문자열 s가 주어졌을 때, 단어들의 순서를 뒤집어라 - 단어들은 공백을 기준으로 나뉘고, 공백을 기점으로 뒤집어야함 - s가 주어질 때 ..
[Leetcode] 345. Reverse Vowels of a String
Reverse Vowels of a String - LeetCode Can you solve this real interview question? Reverse Vowels of a String - Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, more than onc leetcode.com Given a string s, reverse only all the vowels in the string and return it. The vowels are ..
2023년 회고
벌써 2023년의 마지막 날이 되어버렸다. 잊고 있었는데 누군가 쓴 회고를 보고 나도 한 해를 리마인드 하고 싶다는 생각이 들어 몇자 끄적여 본다. 잘한 일 1. 헬스 시작하고 꾸준히 한 것 취업 후 6월부터 PT 를 등록했다. 헬스 정확히는 쇠질 운동을 하고 싶다는 로망(?)은 오래전부터 가져왔는데, 2년 전 쯤 발목 수술 받았던 것도 그렇고 스스로 신체에 대한 자신이 없어서 -외적인 부분이 아니라 기능적인 부분에서- 헬스장에 가는 것을 미뤄왔다. 물론 헬스 하기 전에도 여러 운동을 해오긴 했다. 수영, 필라테스, 체형 교정 목적의 PT 라던지 달리기 등... 특히 달리기와 체형 교정 PT 가 큰 도움이 되었다. 이건 2022년의 잘한 일 중 하나이긴 한데... 종아리 근육도 많이 회복되었고, 발목 유..
[Leetcode] 605. Can Place Flowers
Can Place Flowers - LeetCode Can you solve this real interview question? Can Place Flowers - You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an integer array flowerbed containing 0's and 1' leetcode.com You have a long flowerbed in which some of the plots are planted, and some are not. However, flower..
[Leetcode] 1431. Kids With the Greatest Number of Candies
Kids With the Greatest Number of Candies - LeetCodeCan you solve this real interview question? Kids With the Greatest Number of Candies - There are n kids with candies. You are given an integer array candies, where each candies[i] represents the number of candies the ith kid has, and an integer extraCandieleetcode.comThere are n kids with candies. You are given an integer array candies, where ea..
[Leetcode] 1071. Greatest Common Divisor of Strings
Greatest Common Divisor of Strings - LeetCodeCan you solve this real interview question? Greatest Common Divisor of Strings - For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself one or more times). Given two strings str1 and str2, return tleetcode.comFor two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t..
[TIL] 2023-1227 Nest.js 공부하는 중
Facts 사내에서 electron + Next.js 를 활용한 키오스크 POC 개발을 담당하게 되었음. POC 자체는 80% 정도 진행 되었다고 보여짐. 현재까진 여러 이슈가 있지만 일단 눈앞에 놓인 것을 하고 있음. 백엔드에도 관심을 가지게 되어서 TS 기반 프레임웤인 Nest.js를.. 노마드코더 강의 보면서 공부해보는 중. Feelings 스타트업답게 회사에서 정말 많은 변화가 일어나고 있음. 그에 발맞춰 나도 변화해야겠다는 생각이 정말 많이 듬. 대표님과 사내 개발 문화에 대한 이야기를 나누다가, 문제의 본질 중 하나는 '서로 자유롭게 물어보기 힘든 분위기' 도 있음을 깨달음 예전에 팀플하면서도 느꼈던 부분이지만, 설령 실질적인 도움이 되는 이야기가 아니더라도 일단 자유롭게 이야기하고 받아줄 수..
[Leetcode] 1768.Merge Strings Alternately
Merge Strings Alternately - LeetCodeCan you solve this real interview question? Merge Strings Alternately - You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the other, append the additional leleetcode.comYou are given two strings word1 and word2. Merge the strings by adding letters in alternating ..
[TIL] 2023-1208 노션 API 활용하기... 근데 그냥 삽질 푸념...
Facts & Feelings & Findings... - 개인 작업은 완전히 삽질 데이... 반년전에 멈춰두었던 블로그 프로젝트를 다시 진행중인데, db 겸 에디터로 활용하려고 했던 노션 api 가 말썽이다. 그냥 깔끔하게 html 로 데이터를 받아올 수 있으면 참 좋을텐데, notion api 는 자체적인 dto 로 데이터를 내보내주고 있다... 근데 이 block 단위가 무진장 헷갈린다... - react-notion-x 에서 제공하는 NotionRenderer 를 활용하면 이를 html 로 변환해주지만, 이를 스타일링 하기가 쉽지 않음... 최근 사내에서도 QR Scanner 라던지 date-picker 같은 외부 라이브러리를 불러와 디자인에 맞게 CSS 커스터마이징을 많이 해봤는데, 현재 프로젝..
[TIL] 2023-1207
Facts & Findings - 리스트의 선택을 관리하는 useSelect 훅을 만들었었는데, 제네릭을 활용해 타입을 유동적으로 받아오면서 여러 로직에 재사용 할 수 있도록 수정해주었다. 이 list 에 대해 중복된 상태를 제거하고, 훅에서 리턴하는 상태를 활용하도록 개선해줌. - QR 스캔에 관련된 테스트 로직을 작성중이다... cypress 에서 전체 시나리오에 대한 테스트를 진행하려고 했는데, QR 데이터를 주입하는게 좀 까다로워서 고민이 된다.... ... } containerStyle={{ width: '100vw', height: '100vh' }} videoContainerStyle={{ width: '100vw', height: '100vh', paddingTop: '0px', }} vi..