목록해시 (25)
넘치게 채우기
https://leetcode.com/problems/first-unique-character-in-a-string/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Leetcode - First Unique Character in a String 문제 유형 : 문자열 처리, 해시 문제 난이도 : Easy 문제 Given a string ..
https://leetcode.com/problems/unique-number-of-occurrences/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com leetcode - Unique Number of Occurrences 문제 유형 : 해시 문제 난이도 : Easy 문제 Given an array of integers arr, ret..
https://leetcode.com/problems/insert-delete-getrandom-o1/description/ Insert Delete GetRandom O(1) - LeetCode Can you solve this real interview question? Insert Delete GetRandom O(1) - Implement the RandomizedSet class: * RandomizedSet() Initializes the RandomizedSet object. * bool insert(int val) Inserts an item val into the set if not present. Returns true if th leetcode.com leetcode - Insert ..
https://leetcode.com/problems/find-players-with-zero-or-one-losses/description/ Find Players With Zero or One Losses - LeetCode Can you solve this real interview question? Find Players With Zero or One Losses - You are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Return a list answer of size leetcode.com ..
https://leetcode.com/problems/determine-if-two-strings-are-close/description/ Determine if Two Strings Are Close - LeetCode Can you solve this real interview question? Determine if Two Strings Are Close - Two strings are considered close if you can attain one from the other using the following operations: * Operation 1: Swap any two existing characters. * For example, abcde -> leetcode.com leetc..
https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/description/ Minimum Number of Steps to Make Two Strings Anagram - LeetCode Can you solve this real interview question? Minimum Number of Steps to Make Two Strings Anagram - You are given two strings of the same length s and t. In one step you can choose any character of t and replace it with another character. Ret..
https://leetcode.com/problems/arithmetic-slices-ii-subsequence/description/ Arithmetic Slices II - Subsequence - LeetCode Can you solve this real interview question? Arithmetic Slices II - Subsequence - Given an integer array nums, return the number of all the arithmetic subsequences of nums. A sequence of numbers is called arithmetic if it consists of at least three elements leetcode.com leetco..
https://leetcode.com/problems/minimum-number-of-operations-to-make-array-empty/description/ Minimum Number of Operations to Make Array Empty - LeetCode Can you solve this real interview question? Minimum Number of Operations to Make Array Empty - You are given a 0-indexed array nums consisting of positive integers. There are two types of operations that you can apply on the array any number of t..
https://leetcode.com/problems/convert-an-array-into-a-2d-array-with-conditions/description/ Convert an Array Into a 2D Array With Conditions - LeetCode Can you solve this real interview question? Convert an Array Into a 2D Array With Conditions - You are given an integer array nums. You need to create a 2D array from nums satisfying the following conditions: * The 2D array should contain only th..
https://leetcode.com/problems/largest-substring-between-two-equal-characters/description/ Largest Substring Between Two Equal Characters - LeetCode Can you solve this real interview question? Largest Substring Between Two Equal Characters - Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If there is no such substring return..