Machine Learning Projects [Solved] We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [freq, val] = [nums[2*i], nums[2*i+1]] (with i >= 0). For each such pair, there are freq elements with value val concatenated in a sublist. Concatenate all the sublists from left to right to generate the decompressed list. Return the decompressed list.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] You are given a string s formed by digits and ‘#’. We want to map s to English lowercase characters as follows: Characters (‘a’ to ‘i’) are represented by (‘1’ to ‘9’) respectively. Characters (‘j’ to ‘z’) are represented by (’10#’ to ’26#’) respectively.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given two binary search trees root1 and root2, return a list containing all the integers from both trees sorted in ascending order.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given an integer n, return any array containing n unique integers such that they add up to 0.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given the root of a binary tree, return the sum of values of its deepest leaves.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1. After doing so, return the array.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given an array nums of integers, return how many of them contain an even number of digits.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number. Return the decimal value of the number in the linked list.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time, return that integer.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022[Solved] Given an integer number n, return the difference between the product of its digits and the sum of its digits.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022 Prev1 … 13 14 15 16 17 18 19 … 52Next
[Solved] We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [freq, val] = [nums[2*i], nums[2*i+1]] (with i >= 0). For each such pair, there are freq elements with value val concatenated in a sublist. Concatenate all the sublists from left to right to generate the decompressed list. Return the decompressed list.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] You are given a string s formed by digits and ‘#’. We want to map s to English lowercase characters as follows: Characters (‘a’ to ‘i’) are represented by (‘1’ to ‘9’) respectively. Characters (‘j’ to ‘z’) are represented by (’10#’ to ’26#’) respectively.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given two binary search trees root1 and root2, return a list containing all the integers from both trees sorted in ascending order.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an integer n, return any array containing n unique integers such that they add up to 0.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given the root of a binary tree, return the sum of values of its deepest leaves.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1. After doing so, return the array.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an array nums of integers, return how many of them contain an even number of digits.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number. Return the decimal value of the number in the linked list.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time, return that integer.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an integer number n, return the difference between the product of its digits and the sum of its digits.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022