3600 Find The K Th Character In String Game I
Find the K-th Character in String Game I Alice and Bob are playing a game. Initially, Alice has a string word = “a”. You are given a positive integer k. Now Bob will ask Alice to perform the fo...
Find the K-th Character in String Game I Alice and Bob are playing a game. Initially, Alice has a string word = “a”. You are given a positive integer k. Now Bob will ask Alice to perform the fo...
Find the Original Typed String II Alice is attempting to type a specific string on her computer. However, she tends to be clumsy and may press a key for too long, resulting in a character being t...
Find the Original Typed String I Alice is attempting to type a specific string on her computer. However, she tends to be clumsy and may press a key for too long, resulting in a character being ty...
Longest Harmonious Subsequence We 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 nums, return the...
Number of Subsequences That Satisfy the Given Sum Condition You are given an array of integers nums and an integer target. Return the number of non-empty subsequences of *nums such that the sum ...
Find Subsequence of Length K With the Largest Sum You are given an integer array nums and an integer k. You want to find a subsequence **of nums of length k that has the **largest sum. Return* *...
Longest Subsequence Repeated k Times You 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 a strin...
Longest Binary Subsequence Less Than or Equal to K You are given a binary string s and a positive integer k. Return the length of the longest subsequence of *s that makes up a binary number less...
Kth Smallest Product of Two Sorted Arrays Given two sorted 0-indexed integer arrays nums1 and nums2 as well as an integer k, return the *kth (1-based) smallest product of nums1[i] * nums2[j] where ...
Find All K-Distant Indices in an Array You are given a 0-indexed integer array nums and two integers key and k. A k-distant index is an index i of nums for which there exists at le...