• Leetcode [Easy] 100 - Same Tree

    LeetCode 100 Same Tree 문제 출처 문제 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Example 1: Input: 1 1 / \ /...


  • 비트 연산 정리

    Integer 를 bit 로 보기 Integer 는 4 bytes = 32 bits (32 개의 1 과 0) 로 이루어짐 32 bits 로 표현할 수 있는 수의 크기 232 는 1000...000 형태로 0 이 32 개여야한다. (총 33bits) 그러므로 32 bits 는 232 - 1 만큼의 수를 표현할 수 있다. 하지만,...


  • Leetcode [Easy] 3388 - Reverse Bits

    LeetCode 3388 Subsets 문제 출처 문제 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 00111001011110000010100101000000 Explanation: The input binary string 00000010100101000001111010011100 represents the unsigned integer 43261596, so return 964176192 which its binary representation is 00111001011110000010100101000000. Example 2: Input: 11111111111111111111111111111101 Output: 10111111111111111111111111111111 Explanation: The input...


  • 개발 블로그를 시작하며 (운영 계획)

    블로그를 시작하며 1년 동안 개발 공부에서 가장 중요한 부분이 메모였다고 생각한다. 메모를 통해 짧디 짧은 내 기억을 조금 더 연장할 수 있었고 검색에 소요되는 비용을 많이 아낄 수 있었다. 지금까지는 에버노트 / 노션 / 깃헙 레포 / 벨로그 에 메모를 기록해왔다. 효율적인 메모 방법을 단계적으로 찾아가는 과정에서 나름의 성취감과 동기...


  • Leetcode [Medium] 299665 - Subsets

    LeetCode 299665 Subsets 문제 출처 문제 Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Example: Input: nums = [1,2,3] Output: [ [3], [1], [2], [1,2,3], [1,3], [2,3], [1,2], [] ] 나의 코드 재귀를 이용해 풀어야한다는...