VRVinay Rangarajuinvinayrangaraju.hashnode.dev·Jun 20, 2023 · 7 min readLets Code Everyday - Day 30Question - 30: Find All Duplicates in an Array Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, return an array of all the integers that appears twice. Example 1: I...00
VRVinay Rangarajuinvinayrangaraju.hashnode.dev·May 11, 2023 · 4 min readLets Code Everyday - Day 29Question - 29: Sum of Even Numbers After Queries You are given an integer array nums and an array queries where queries[i] = [val<sub>i</sub>, index<sub>i</sub>]. For each query i, first, apply nums[index<sub>i</sub>] = nums[index<sub>i</sub>] + val<...00
VRVinay Rangarajuinvinayrangaraju.hashnode.dev·May 8, 2023 · 3 min readLets Code Everyday - Day 28Question - 28: Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Given an array of integers arr and two integers k and threshold, return the number of sub-arrays of size k and average greater than or equal to threshold. Ex...00
VRVinay Rangarajuinvinayrangaraju.hashnode.dev·May 7, 2023 · 3 min readLets Code Everyday - Day 27Question - 27: Maximum Number of Vowels in a Substring of Given Length Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k. Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'. Exampl...00
VRVinay Rangarajuinvinayrangaraju.hashnode.dev·May 4, 2023 · 4 min readLets Code Everyday - Day 26Question - 26: Find the Duplicate Number Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated number in nums, return this repeated number. Example 1: Input: nums = [...00