All Posts
Leetcode 2186: Minimum Number of Steps to Make Two Strings Anagram II
You are given two strings, s and t. In each step, you can append any character to either s or t. Your task is to determine the minimum number of steps required to make s and t anagrams of each other.
Leetcode 2190: Most Frequent Number Following Key In an Array
You are given an integer array ’nums’ and an integer ‘key’, which is present in ’nums’. Your task is to find the integer that most frequently appears immediately after an occurrence of ‘key’ in the array. In other words, count how many times each integer follows ‘key’ and return the integer that appears the most.
Leetcode 2225: Find Players With Zero or One Losses
You are given an array matches
where each element matches[i] = [winneri, loseri]
indicates that player winneri
defeated player loseri
in a match. Your task is to return a list answer
of size 2 where:
answer[0]
contains the list of players who have never lost a match.answer[1]
contains the list of players who have lost exactly one match.
The players in both lists should be sorted in increasing order.