전체 글 (2344) 썸네일형 리스트형 (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 이진법 변.. (C++) - LeetCode (easy) 682. Baseball Game https://leetcode.com/problems/baseball-game/description/ Baseball Game - LeetCode Can you solve this real interview question? Baseball Game - You are keeping the scores for a baseball game with strange rules. At the beginning of the game, you start with an empty record. You are given a list of strings operations, where operations[i] is leetcode.com stack을 이용한 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 원소의 전체합.. (C++) - LeetCode (easy) 671. Second Minimum Node In a Binary Tree https://leetcode.com/problems/longest-continuous-increasing-subsequence/description/ Longest Continuous Increasing Subsequence - LeetCode Can you solve this real interview question? Longest Continuous Increasing Subsequence - Given an unsorted array of integers nums, return the length of the longest continuous increasing subsequence (i.e. subarray). The subsequence must be strictly increasin lee.. 이전 1 ··· 71 72 73 74 75 76 77 ··· 293 다음