2053. Kth Distinct String in an Array
A 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 present […]
A 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 present […]
Given a binary tree, return an array where elements represent the bottom view of the binary tree from left to right.
You are given the array nums consisting of n positive integers. You computed the sum of all non-empty continuous subarrays from the array and
You are given timings of n meetings in the form of (start[i], end[i]) where start[i] is the start time of meeting i and end[i] is the finish time
You are given two integer arrays of equal length target and arr. In one step, you can select any non-empty subarray of arr and reverse it. You
A celebrity is a person who is known to all but does not know anyone at a party. A party is being
A swap is defined as taking two distinct positions in an array and swapping the values in them. A circular array is defined as an array
Given two strings str1 and str2. Return the minimum number of operations required to convert str1 to str2.The possible operations are permitted: Insert a character at any
You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15.
You are given a rectangular matrix, and your task is to return an array while traversing the matrix in spiral form. Examples: Input: matrix[][]
You are given an array books where books[i] = [thicknessi, heighti] indicates the thickness and height of the ith book. You are also given an integer shelfWidth.
Given an array of strings arr. Return the longest common prefix among all strings present in the array. If there’s no prefix common in all