Counting Problems
Master counting problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 106 problems in this category.
Total Problems: 106
Easy: 45
Medium: 51
Hard: 10
Showing 50 of 106 problems
Problems
Scroll within this area to browse all problems
#
Title
Difficulty
Counting LeetCode Problems List
- 347. Top K Frequent Elements - Medium - CountingGiven an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.... Topics: Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect
- 169. Majority Element - Easy - CountingGiven an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume t... Topics: Array, Hash Table, Divide and Conquer, Sorting, Counting
- 383. Ransom Note - Easy - CountingGiven two strings ransomNote and magazine, return true if ransomNote can be constructed by using the letters from magazine and false otherwise. Each l... Topics: Hash Table, String, Counting
- 621. Task Scheduler - Medium - CountingYou are given an array of CPU tasks, each labeled with a letter from A to Z, and a number n. Each CPU interval can be idle or allow the completion of ... Topics: Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting
- 387. First Unique Character in a String - Easy - CountingGiven a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.... Topics: Hash Table, String, Queue, Counting
- 1708. Design Parking System - Easy - CountingDesign a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for... Topics: Design, Simulation, Counting
- 3267. Find Longest Special Substring That Occurs Thrice I - Medium - CountingYou are given a string s that consists of lowercase English letters. A string is called special if it is made up of only a single character. For examp... Topics: Hash Table, String, Binary Search, Sliding Window, Counting
- 920. Uncommon Words from Two Sentences - Easy - CountingA sentence is a string of single-space separated words where each word consists only of lowercase letters. A word is uncommon if it appears exactly on... Topics: Hash Table, String, Counting
- 837. Most Common Word - Easy - CountingGiven a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at... Topics: Array, Hash Table, String, Counting
- 1635. Number of Good Pairs - Easy - CountingGiven an array of integers nums, return the number of good pairs. A pair (i, j) is called good if nums[i] == nums[j] and i < j.... Topics: Array, Hash Table, Math, Counting
- 299. Bulls and Cows - Medium - CountingYou are playing the Bulls and Cows game with your friend. You write down a secret number and ask your friend to guess what the number is. When your fr... Topics: Hash Table, String, Counting
- 451. Sort Characters By Frequency - Medium - CountingGiven a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears... Topics: Hash Table, String, Sorting, Heap (Priority Queue), Bucket Sort, Counting
- 2378. Sender With Largest Word Count - Medium - CountingYou have a chat log of n messages. You are given two string arrays messages and senders where messages[i] is a message sent by senders[i]. A message i... Topics: Array, Hash Table, String, Counting
- 2362. Minimum Rounds to Complete All Tasks - Medium - CountingYou are given a 0-indexed integer array tasks, where tasks[i] represents the difficulty level of a task. In each round, you can complete either 2 or 3... Topics: Array, Hash Table, Greedy, Counting
- 229. Majority Element II - Medium - CountingGiven an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.... Topics: Array, Hash Table, Sorting, Counting
- 2605. Count Anagrams - Hard - CountingYou are given a string s containing one or more words. Every consecutive pair of words is separated by a single space ' '. A string t is an anagram of... Topics: Hash Table, Math, String, Combinatorics, Counting
- 1055. Pairs of Songs With Total Durations Divisible by 60 - Medium - CountingYou are given a list of songs where the ith song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration... Topics: Array, Hash Table, Counting
- 1458. Sort Integers by The Number of 1 Bits - Easy - CountingYou are given an integer array arr. Sort the integers in the array in ascending order by the number of 1's in their binary representation and in case ... Topics: Array, Bit Manipulation, Sorting, Counting
- 3437. Maximum Total Damage With Spell Casting - Medium - CountingA magician has various spells. You are given an array power, where each element represents the damage of a spell. Multiple spells can have the same da... Topics: Array, Hash Table, Two Pointers, Binary Search, Dynamic Programming, Sorting, Counting
- 2433. Best Poker Hand - Easy - CountingYou are given an integer array ranks and a character array suits. You have 5 cards where the ith card has a rank of ranks[i] and a suit of suits[i]. T... Topics: Array, Hash Table, Counting
- 2475. Largest Palindromic Number - Medium - CountingYou are given a string num consisting of digits only. Return the largest palindromic integer (in the form of a string) that can be formed using digits... Topics: Hash Table, String, Greedy, Counting
- 3455. Minimum Length of String After Operations - Medium - CountingYou are given a string s. You can perform the following process on s any number of times: Choose an index i in the string such that there is at least ... Topics: Hash Table, String, Counting
- 1777. Determine if Two Strings Are Close - Medium - CountingTwo strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. F... Topics: Hash Table, String, Sorting, Counting
- 1534. Minimum Number of Frogs Croaking - Medium - CountingYou are given the string croakOfFrogs, which represents a combination of the string "croak" from different frogs, that is, multiple frogs can croak at... Topics: String, Counting
- 1034. Subarrays with K Different Integers - Hard - CountingGiven an integer array nums and an integer k, return the number of good subarrays of nums. A good array is an array where the number of different inte... Topics: Array, Hash Table, Sliding Window, Counting
- 1848. Sum of Unique Elements - Easy - CountingYou are given an integer array nums. The unique elements of an array are the elements that appear exactly once in the array. Return the sum of all the... Topics: Array, Hash Table, Counting
- 2654. Count the Number of Vowel Strings in Range - Easy - CountingYou are given a 0-indexed array of string words and two integers left and right. A string is called a vowel string if it starts with a vowel character... Topics: Array, String, Counting
- 3242. Count Elements With Maximum Frequency - Easy - CountingYou are given an array nums consisting of positive integers. Return the total frequencies of elements in nums such that those elements all have the ma... Topics: Array, Hash Table, Counting
- 1859. Change Minimum Characters to Satisfy One of Three Conditions - Medium - CountingYou are given two strings a and b that consist of lowercase letters. In one operation, you can change any character in a or b to any lowercase letter.... Topics: Hash Table, String, Counting, Prefix Sum
- 1786. Count the Number of Consistent Strings - Easy - CountingYou are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string... Topics: Array, Hash Table, String, Bit Manipulation, Counting
- 1890. Sum of Beauty of All Substrings - Medium - CountingThe beauty of a string is the difference in frequencies between the most frequent and least frequent characters. For example, the beauty of "abaacc" i... Topics: Hash Table, String, Counting
- 2312. Most Frequent Number Following Key In an Array - Easy - CountingYou are given a 0-indexed integer array nums. You are also given an integer key, which is present in nums. For every unique integer target in nums, co... Topics: Array, Hash Table, Counting
- 2486. Most Frequent Even Element - Easy - CountingGiven an integer array nums, return the most frequent even element. If there is a tie, return the smallest one. If there is no such element, return -1... Topics: Array, Hash Table, Counting
- 1160. Letter Tile Possibilities - Medium - CountingYou have n tiles, where each tile has one letter tiles[i] printed on it. Return the number of possible non-empty sequences of letters you can make us... Topics: Hash Table, String, Backtracking, Counting
- 3324. Split the Array - Easy - CountingYou are given an integer array nums of even length. You have to split the array into two parts nums1 and nums2 such that: nums1.length == nums2.length... Topics: Array, Hash Table, Counting
- 1469. Minimum Number of Steps to Make Two Strings Anagram - Medium - CountingYou 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. Return the ... Topics: Hash Table, String, Counting
- 3019. Furthest Point From Origin - Easy - CountingYou are given a string moves of length n consisting only of characters 'L', 'R', and '_'. The string represents your movement on a number line startin... Topics: String, Counting
- 936. RLE Iterator - Medium - CountingWe can use run-length encoding (i.e., RLE) to encode a sequence of integers. In a run-length encoded array of even length encoding (0-indexed), for al... Topics: Array, Design, Counting, Iterator
- 2140. Longest Subsequence Repeated k Times - Hard - CountingYou are given a string s of length n, and an integer k. You are tasked to find the longest subsequence repeated k times in string s. A subsequence is ... Topics: String, Backtracking, Greedy, Counting, Enumeration
- 2156. Stone Game IX - Medium - CountingAlice and Bob continue their games with stones. There is a row of n stones, and each stone has an associated value. You are given an integer array sto... Topics: Array, Math, Greedy, Counting, Game Theory
- 2633. Minimum Cost to Split an Array - Hard - CountingYou are given an integer array nums and an integer k. Split the array into some number of non-empty subarrays. The cost of a split is the sum of the i... Topics: Array, Hash Table, Dynamic Programming, Counting
- 829. Subdomain Visit Count - Medium - CountingA website domain "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com" and... Topics: Array, Hash Table, String, Counting
- 3630. Total Characters in String After Transformations II - Hard - CountingYou are given a string s consisting of lowercase English letters, an integer t representing the number of transformations to perform, and an array num... Topics: Hash Table, Math, String, Dynamic Programming, Counting
- 1112. Find Words That Can Be Formed by Characters - Easy - CountingYou are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be ... Topics: Array, Hash Table, String, Counting
- 2289. Minimum Operations to Make the Array Alternating - Medium - CountingYou are given a 0-indexed array nums consisting of n positive integers. The array nums is called alternating if: nums[i - 2] == nums[i], where 2 <= i ... Topics: Array, Hash Table, Greedy, Counting
- 3594. Identify the Largest Outlier in an Array - Medium - CountingYou are given an integer array nums. This array contains n elements, where exactly n - 2 elements are special numbers. One of the remaining two elemen... Topics: Array, Hash Table, Counting, Enumeration
- 692. Top K Frequent Words - Medium - CountingGiven an array of strings words and an integer k, return the k most frequent strings. Return the answer sorted by the frequency from highest to lowest... Topics: Array, Hash Table, String, Trie, Sorting, Heap (Priority Queue), Bucket Sort, Counting
- 2494. Sum of Prefix Scores of Strings - Hard - CountingYou are given an array words of size n consisting of non-empty strings. We define the score of a string term as the number of strings words[i] such th... Topics: Array, String, Trie, Counting
- 1987. Substrings of Size Three with Distinct Characters - Easy - CountingA string is good if there are no repeated characters. Given a string s, return the number of good substrings of length three in s. Note tha... Topics: Hash Table, String, Sliding Window, Counting
- 3885. Count Special Triplets - Medium - CountingYou are given an integer array nums. A special triplet is defined as a triplet of indices (i, j, k) such that: 0 <= i < j < k < n, where n = nums.leng... Topics: Array, Hash Table, Counting
- 2356. Largest Combination With Bitwise AND Greater Than Zero - Medium - CountingThe bitwise AND of an array nums is the bitwise AND of all integers in nums. For example, for nums = [1, 5, 3], the bitwise AND is equal to 1 & 5 & 3 ... Topics: Array, Hash Table, Bit Manipulation, Counting
- 2615. Make Number of Distinct Characters Equal - Medium - CountingYou are given two 0-indexed strings word1 and word2. A move consists of choosing two indices i and j such that 0 <= i < word1.length and 0 <= j < word... Topics: Hash Table, String, Counting
- 1986. Largest Color Value in a Directed Graph - Hard - CountingThere is a directed graph of n colored nodes and m edges. The nodes are numbered from 0 to n - 1. You are given a string colors where colors[i] is a l... Topics: Hash Table, Dynamic Programming, Graph, Topological Sort, Memoization, Counting
- 1341. Split a String in Balanced Strings - Easy - CountingBalanced strings are those that have an equal quantity of 'L' and 'R' characters. Given a balanced string s, split it into some number of substrings s... Topics: String, Greedy, Counting
- 3388. Right Triangles - Medium - CountingYou are given a 2D boolean matrix grid. A collection of 3 elements of grid is a right triangle if one of its elements is in the same row with another ... Topics: Array, Hash Table, Math, Combinatorics, Counting
- 900. Reordered Power of 2 - Medium - CountingYou are given an integer n. We reorder the digits in any order (including the original order) such that the leading digit is not zero. Return true if ... Topics: Hash Table, Math, Sorting, Counting, Enumeration
- 3736. Find Valid Pair of Adjacent Digits in String - Easy - CountingYou are given a string s consisting only of digits. A valid pair is defined as two adjacent digits in s such that: The first digit is not equal to the... Topics: Hash Table, String, Counting
- 2116. Count Number of Pairs With Absolute Difference K - Easy - CountingGiven an integer array nums and an integer k, return the number of pairs (i, j) where i < j such that |nums[i] - nums[j]| == k. The value of |x| is de... Topics: Array, Hash Table, Counting
- 2614. Maximum Count of Positive Integer and Negative Integer - Easy - CountingGiven an array nums sorted in non-decreasing order, return the maximum between the number of positive integers and the number of negative integers. In... Topics: Array, Binary Search, Counting
- 3872. Find Most Frequent Vowel and Consonant - Easy - CountingYou are given a string s consisting of lowercase English letters ('a' to 'z'). Your task is to: Find the vowel (one of 'a', 'e', 'i', 'o', or 'u') wit... Topics: Hash Table, String, Counting
- 1915. Check if One String Swap Can Make Strings Equal - Easy - CountingYou are given two strings s1 and s2 of equal length. A string swap is an operation where you choose two indices in a string (not necessarily different... Topics: Hash Table, String, Counting
- 2177. Check Whether Two Strings are Almost Equivalent - Easy - CountingTwo strings word1 and word2 are considered almost equivalent if the differences between the frequencies of each letter from 'a' to 'z' between word1 a... Topics: Hash Table, String, Counting
- 2025. Redistribute Characters to Make All Strings Equal - Easy - CountingYou are given an array of strings words (0-indexed). In one operation, pick two distinct indices i and j, where words[i] is a non-empty string, and mo... Topics: Hash Table, String, Counting
- 2237. Longest Palindrome by Concatenating Two Letter Words - Medium - CountingYou are given an array of strings words. Each element of words consists of two lowercase English letters. Create the longest possible palindrome by se... Topics: Array, Hash Table, String, Greedy, Counting
- 1297. Maximum Number of Balloons - Easy - CountingGiven a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible. You can use each character in... Topics: Hash Table, String, Counting
- 2592. Minimum Total Cost to Make Arrays Unequal - Hard - CountingYou are given two 0-indexed integer arrays nums1 and nums2, of equal length n. In one operation, you can swap the values of any two indices of nums1. ... Topics: Array, Hash Table, Greedy, Counting
- 3335. Minimum Operations to Write the Letter Y on a Grid - Medium - CountingYou are given a 0-indexed n x n grid where n is odd, and grid[r][c] is 0, 1, or 2. We say that a cell belongs to the Letter Y if it belongs to one of ... Topics: Array, Hash Table, Matrix, Counting
- 3384. Minimum Number of Operations to Make Word K-Periodic - Medium - CountingYou are given a string word of size n, and an integer k such that k divides n. In one operation, you can pick any two indices i and j, that are divisi... Topics: Hash Table, String, Counting
- 1983. Maximum Population Year - Easy - CountingYou are given a 2D integer array logs where each logs[i] = [birthi, deathi] indicates the birth and death years of the ith person. The population of s... Topics: Array, Counting, Prefix Sum
- 2293. Minimum Number of Steps to Make Two Strings Anagram II - Medium - CountingYou are given two strings s and t. In one step, you can append any character to either s or t. Return the minimum number of steps to make s and t anag... Topics: Hash Table, String, Counting
- 594. Longest Harmonious Subsequence - Easy - CountingWe define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly 1. Given an integer array num... Topics: Array, Hash Table, Sliding Window, Sorting, Counting
- 3360. Minimum Deletions to Make String K-Special - Medium - CountingYou are given a string word and an integer k. We consider word to be k-special if |freq(word[i]) - freq(word[j])| <= k for all indices i and j in the ... Topics: Hash Table, String, Greedy, Sorting, Counting
- 1925. Count Nice Pairs in an Array - Medium - CountingYou are given an array nums that consists of non-negative integers. Let us define rev(x) as the reverse of the non-negative integer x. For example, re... Topics: Array, Hash Table, Math, Counting
- 1227. Number of Equivalent Domino Pairs - Easy - CountingGiven a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a == c and b == d), or (a == d and b == c)... Topics: Array, Hash Table, Counting
- 2139. Detect Squares - Medium - CountingYou are given a stream of points on the X-Y plane. Design an algorithm that: Adds new points from the stream into a data structure. Duplicate points a... Topics: Array, Hash Table, Design, Counting
- 3813. Smallest Palindromic Rearrangement II - Hard - CountingYou are given a palindromic string s and an integer k. Return the k-th lexicographically smallest palindromic permutation of s. If there are fewer tha... Topics: Hash Table, Math, String, Combinatorics, Counting
- 3754. Maximum Manhattan Distance After K Changes - Medium - CountingYou are given a string s consisting of the characters 'N', 'S', 'E', and 'W', where s[i] indicates movements in an infinite grid: 'N' : Move north by ... Topics: Hash Table, Math, String, Counting
- 3753. Maximum Difference Between Even and Odd Frequency I - Easy - CountingYou are given a string s consisting of lowercase English letters. Your task is to find the maximum difference diff = freq(a1) - freq(a2) between the f... Topics: Hash Table, String, Counting
- 3534. Count Almost Equal Pairs I - Medium - CountingYou are given an array nums consisting of positive integers. We call two integers x and y in this problem almost equal if both integers can become equ... Topics: Array, Hash Table, Sorting, Counting, Enumeration
- 1502. Construct K Palindrome Strings - Medium - CountingGiven a string s and an integer k, return true if you can use all the characters in s to construct non-empty k palindrome strings or false otherwise.... Topics: Hash Table, String, Greedy, Counting
- 3914. Check if Any Element Has Prime Frequency - Easy - CountingYou are given an integer array nums. Return true if the frequency of any element of the array is prime, otherwise, return false. The frequency of an e... Topics: Array, Hash Table, Math, Counting, Number Theory
- 2300. Construct String With Repeat Limit - Medium - CountingYou are given a string s and an integer repeatLimit. Construct a new string repeatLimitedString using the characters of s such that no letter appears ... Topics: Hash Table, String, Greedy, Heap (Priority Queue), Counting
- 2532. Remove Letter To Equalize Frequency - Easy - CountingYou are given a 0-indexed string word, consisting of lowercase English letters. You need to select one index and remove the letter at that index from ... Topics: Hash Table, String, Counting
- 2174. Next Greater Numerically Balanced Number - Medium - CountingAn integer x is numerically balanced if for every digit d in the number x, there are exactly d occurrences of that digit in x. Given an integer n, ret... Topics: Hash Table, Math, Backtracking, Counting, Enumeration
- 778. Reorganize String - Medium - CountingGiven a string s, rearrange the characters of s so that any two adjacent characters are not the same. Return any possible rearrangement of s or return... Topics: Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting
- 2308. Divide Array Into Equal Pairs - Easy - CountingYou are given an integer array nums consisting of 2 * n integers. You need to divide nums into n pairs such that: Each element belongs to exactly one ... Topics: Array, Hash Table, Bit Manipulation, Counting
- 3519. Find the Number of Winning Players - Easy - CountingYou are given an integer n representing the number of players in a game and a 2D array pick where pick[i] = [xi, yi] represents that the player xi pic... Topics: Array, Hash Table, Counting
- 2129. Number of Pairs of Interchangeable Rectangles - Medium - CountingYou are given n rectangles represented by a 0-indexed 2D integer array rectangles, where rectangles[i] = [widthi, heighti] denotes the width and heigh... Topics: Array, Hash Table, Math, Counting, Number Theory
- 1354. Find Players With Zero or One Losses - Medium - CountingYou are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Retur... Topics: Array, Hash Table, Sorting, Counting
- 2594. Count Pairs Of Similar Strings - Easy - CountingYou are given a 0-indexed string array words. Two strings are similar if they consist of the same characters. For example, "abca" and "cba" are simila... Topics: Array, Hash Table, String, Bit Manipulation, Counting
- 2270. Find All Lonely Numbers in the Array - Medium - CountingYou are given an integer array nums. A number x is lonely when it appears only once, and no adjacent numbers (i.e. x + 1 and x - 1) appear in the arra... Topics: Array, Hash Table, Counting
- 3276. Minimum Number of Pushes to Type Word II - Medium - CountingYou are given a string word containing lowercase English letters. Telephone keypads have keys mapped with distinct collections of lowercase English le... Topics: Hash Table, String, Greedy, Sorting, Counting
- 2053. Check if All Characters Have Equal Number of Occurrences - Easy - CountingGiven a string s, return true if s is a good string, or false otherwise. A string s is good if all the characters that appear in s have the same numbe... Topics: Hash Table, String, Counting
- 2377. Check if Number Has Equal Digit Count and Digit Value - Easy - CountingYou are given a 0-indexed string num of length n consisting of digits. Return true if for every index i in the range 0 <= i < n, the digit i occurs nu... Topics: Hash Table, String, Counting
- 3955. Threshold Majority Queries - Hard - CountingYou are given an integer array nums of length n and an array queries, where queries[i] = [li, ri, thresholdi]. Return an array of integers ans where a... Topics: Array, Hash Table, Binary Search, Divide and Conquer, Counting, Prefix Sum
- 2427. First Letter to Appear Twice - Easy - CountingGiven a string s consisting of lowercase English letters, return the first letter to appear twice. Note: A letter a appears twice before another lette... Topics: Hash Table, String, Bit Manipulation, Counting
- 959. 3Sum With Multiplicity - Medium - CountingGiven an integer array arr, and an integer target, return the number of tuples i, j, k such that i < j < k and arr[i] + arr[j] + arr[k] == target. As ... Topics: Array, Hash Table, Two Pointers, Sorting, Counting
- 2620. Find Consecutive Integers from a Data Stream - Medium - CountingFor a stream of integers, implement a data structure that checks if the last k integers parsed in the stream are equal to value. Implement the DataStr... Topics: Hash Table, Design, Queue, Counting, Data Stream
- 2163. Kth Distinct String in an Array - Easy - CountingA distinct string is a string that is present only once in an array. Given an array of strings arr, and an integer k, return the kth distinct string p... Topics: Array, Hash Table, String, Counting
- 2525. Count Number of Distinct Integers After Reverse Operations - Medium - CountingYou are given an array nums consisting of positive integers. You have to take each integer in the array, reverse its digits, and add it to the end of ... Topics: Array, Hash Table, Math, Counting
- 950. X of a Kind in a Deck of Cards - Easy - CountingYou are given an integer array deck where deck[i] represents the number written on the ith card. Partition the cards into one or more groups such that... Topics: Array, Hash Table, Math, Counting, Number Theory
- 1844. Maximum Number of Balls in a Box - Easy - CountingYou are working in a ball factory where you have n balls numbered from lowLimit up to highLimit inclusive (i.e., n == highLimit - lowLimit + 1), and a... Topics: Hash Table, Math, Counting
- 3629. Total Characters in String After Transformations I - Medium - CountingYou are given a string s and an integer t, representing the number of transformations to perform. In one transformation, every character in s is repla... Topics: Hash Table, Math, String, Dynamic Programming, Counting
- 1510. Find Lucky Integer in an Array - Easy - CountingGiven an array of integers arr, a lucky integer is an integer that has a frequency in the array equal to its value. Return the largest lucky integer i... Topics: Array, Hash Table, Counting
- 1483. Rank Teams by Votes - Medium - CountingIn a special ranking system, each voter gives a rank from highest to lowest to all teams participating in the competition. The ordering of teams is de... Topics: Array, Hash Table, String, Sorting, Counting
- 2190. Count Common Words With One Occurrence - Easy - CountingGiven two string arrays words1 and words2, return the number of strings that appear exactly once in each of the two arrays.... Topics: Array, Hash Table, String, Counting
Related LeetCode Topics
- Array LeetCode Problems
- Backtracking LeetCode Problems
- Biconnected Component LeetCode Problems
- Binary Indexed Tree LeetCode Problems
- Binary Search LeetCode Problems
- Binary Search Tree LeetCode Problems
- Binary Tree LeetCode Problems
- Bit Manipulation LeetCode Problems
- Bitmask LeetCode Problems
- Brainteaser LeetCode Problems
- Breadth-First Search LeetCode Problems
- Bucket Sort LeetCode Problems
- Combinatorics LeetCode Problems
- Concurrency LeetCode Problems
- Counting Sort LeetCode Problems
- Data Stream LeetCode Problems
- Database LeetCode Problems
- Depth-First Search LeetCode Problems
- Design LeetCode Problems
- Divide and Conquer LeetCode Problems