[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
[Solved] On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum time in seconds to visit all the points in the order given by points.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given a 2D grid of size m x n and an integer k. You need to shift the grid k times.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] There is an m x n matrix that is initialized to all 0’s. There is also a 2D array indices where each indices[i] = [ri, ci] represents a 0-indexed location to perform some increment operations on the matrix.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given a callable function f(x, y) with a hidden formula and a value z, reverse engineer the formula and return all positive integer pairs x and y where f(x,y) == z. You may return the pairs in any order.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Balanced strings are those that have an equal quantity of ‘L’ and ‘R’ characters. Given a balanced string s, split it into some number of substrings such that: Each substring is balanced.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given an array of integers arr, return true if the number of occurrences of each value in the array is unique, or false otherwise.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given a string text, you want to use the characters of text to form as many instances of the word “balloon” as possible. You can use each character in text at most once. Return the maximum number of instances that can be formed.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on. Return the smallest level x such that the sum of all the values of nodes at level x is maximal.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be used once). Return the sum of lengths of all good strings in words.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period “.” with “[.]”.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be used once). Return the sum of lengths of all good strings in words.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] In an infinite binary tree where every node has two children, the nodes are labelled in row order. In the odd numbered rows (ie., the first, third, fifth,…), the labelling is left to right, while in the even numbered rows (second, fourth, sixth,…), the labelling is right to left.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to the second person, and so on until we give n candies to the last person.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022
[Solved] A school is trying to take an annual photo of all the students. The students are asked to stand in a single file line in non-decreasing order by height. Let this ordering be represented by the integer array expected where expected[i] is the expected height of the ith student in line.Leetcode SolutionsAbhishek SharmaSeptember 28, 2022