Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define…
Given an array of set of points in the X-Y plane. The task is to find the minimum area of a rectangle that can be…
RomanizerConvert numbers into roman numerals. Examplenumbers = [1,49,23]Looking at the conversions above, 1 is represented as I(capital I which is roman number), 48 is 40…
Given the string s, return the size of the longest sub-string containing each vowel an even number of times. That is, ‘a’,’e’,’i’,’o’,’u’ must appear an…
Given an array of string words. Return all strings in words which is sub-string of another word in any order. String words[i] is sub-string of…
Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of…
Given the number k, return the minimum number of Fibonacci numbers whose sum is equal to k, whether a Fibonacci number could be used multiple…
Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty sub-strings (i.e. left sub-strings and right…
Given a sorted array and a value x, the floor of x is the largest element in array smaller than or equal to x. Write…
Print all numbers less than NGiven integer n, you need to print all numbers less than n which are having digits only 3 or 7…
Given an array of integers and numbers k and m, write a function that returns true if given array can be divided into pairs such…