Algorithm (2139) 썸네일형 리스트형 (C++) - LeetCode (easy) 717. 1-bit and 2-bit Characters https://leetcode.com/problems/1-bit-and-2-bit-characters/description/ 1-bit and 2-bit Characters - LeetCode Can you solve this real interview question? 1-bit and 2-bit Characters - We have two special characters: * The first character can be represented by one bit 0. * The second character can be represented by two bits (10 or 11). Given a binary array bits that leetcode.com 규칙을 찾아 구현하는 문제였습니다. .. (C++) - LeetCode (easy) 709. To Lower Case https://leetcode.com/problems/to-lower-case/description/ (C++) - LeetCode (easy) 706. Design HashMap https://leetcode.com/problems/design-hashmap/description/ Design HashMap - LeetCode Can you solve this real interview question? Design HashMap - Design a HashMap without using any built-in hash table libraries. Implement the MyHashMap class: * MyHashMap() initializes the object with an empty map. * void put(int key, int value) inserts a ( leetcode.com map을 사용하는 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 class내 m.. (C++) - LeetCode (easy) 704. Binary Search https://leetcode.com/problems/binary-search/description/ Binary Search - LeetCode Can you solve this real interview question? Binary Search - Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1. leetcode.com 이분탐색 문제였습니다. 📕 풀이방법 📔 풀이과정 target이상의 iterator를.. (C++) - LeetCode (easy) 703. Kth Largest Element in a Stream https://leetcode.com/problems/kth-largest-element-in-a-stream/description/ Kth Largest Element in a Stream - LeetCode Can you solve this real interview question? Kth Largest Element in a Stream - Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. Implement KthLargest class: leetcode.com 📕 풀이방법 📔 입.. (C++) - LeetCode (easy) 700. Search in a Binary Search Tree https://leetcode.com/problems/search-in-a-binary-search-tree/description/ Search in a Binary Search Tree - LeetCode Can you solve this real interview question? Search in a Binary Search Tree - You are given the root of a binary search tree (BST) and an integer val. Find the node in the BST that the node's value equals val and return the subtree rooted with that node. If leetcode.com 재귀를 통해 답을 찾는.. (C++) - LeetCode (easy) 697. Degree of an Array https://leetcode.com/problems/degree-of-an-array/description/ Degree of an Array - LeetCode Can you solve this real interview question? Degree of an Array - Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your task is to find the smallest possible leng leetcode.com 자료구조를 이용한 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 .. (C++) - LeetCode (easy) 693. Binary Number with Alternating Bits https://leetcode.com/problems/binary-number-with-alternating-bits/description/ Binary Number with Alternating Bits - LeetCode Can you solve this real interview question? Binary Number with Alternating Bits - Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values. Example 1: Input: n = 5 Output: true Expla leetcode.com 이진법 변.. 이전 1 ··· 66 67 68 69 70 71 72 ··· 268 다음