7707in707.hashnode.dev·Nov 11, 2023 · 4 min read[Leetcode75] 2. Greatest Common Divisor of Strings[1] 문제 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 the largest string x such that x divides both str1 and str2. 두가지 문자열...00
7707in707.hashnode.dev·Nov 11, 2023 · 1 min read[Leetcode75] 1. Merge Strings Alternately[1] 문제 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 letters onto the end of the merged string. 두개의 string 값을 받은 뒤...00
7707in707.hashnode.dev·Nov 11, 2023 · 1 min read[Leetcode] LeetHub이용해서 자동으로 GitHub 커밋하기[1] GitHub에 릿코드용 레파지토리 생성하기 leetcode라는 이름으로 레파지토리를 하나 먼저 생성해준다. [2] 크롬 익스텐션 LeetHub 설치하기 [링크](https://chrome.google.com/webstore/detail/leethub/aciombdipochlnkbpcbgdpjffcfdbggi?hl=en) 로 가서 익스텐션을 설치해준다! 설치 후 핀으로 고정을 하면 저렇게 상단바에 뜨고 누르면 깃헙 계정으로 인증을 하...00
7707in707.hashnode.dev·Nov 8, 2023 · 2 min read[JS/TS] Object.keys()의 'default'는 무엇인가JavaScript 또는 TypeScript에서 Object.keys()를 사용하여 모듈에서 가져온 객체의 키를 배열로 변환하면, 때때로 예상치 못한 'default' 키를 보게 된다. 이것은 ES6 모듈 시스템과 관련이 있다. ES6 모듈에서 export default 구문을 사용하면, 기본적으로 모듈은 'default'라는 이름의 키로 해당 값을 내보낸다. import 구문을 사용하여 이 모듈을 가져올 때, 내보낸 'default' 값에 직...00
7707in707.hashnode.dev·Nov 2, 2023 · 5 min read비트코인의 스크립트 이해하기0. 들어가며 비트코인의 전송 매커니즘 ⇒ 잠금과 해제 비트코인을 전송함 ( = 트랜잭션을 일으켜 새로운 UTXO를 생성함) : 잠금 (ScriptPubKey) 비트코인을 소비함 ( = 기존 UTXO를 이용해 새로운 트랜잭션을 일으킴) : 해제 - 이때 해제를 위한 스크립트가 ScriptSig로 이것으로 해당 UTXO의 소유권을 증명가능 스크립트 : 비트코인의 스마트 계약 언어로 비트코인의 소비 조건을 기술할 수 있음 비트코인의 스크립트는 튜링...00