Given an array of words, Group all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar, formed…

Given an array of words, print all anagrams together. Anagrams : a word, phrase, or name formed by rearranging the letters of another, such as spar,…

Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],…] (si < ei), determine if a person could attend all meetings.…

Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j…

All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: “ACGAATTCCG”. When studying DNA, it is sometimes…

Given binary array, find count of maximum number of consecutive 1’s present in the array. Input_1:arr[ ] : 1 1 0 0 1 0 1…

Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3]…. Input_1:Array_nums : 20 10 8 6 4 2Output:[2, 10, 6, 8, 4,…

Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is…

Given a non-empty array of numbers, a0, a1, a2 ….. where 0 ≤ ai < 2^31. Find the maximum result of ai XOR aj, where 0 ≤ i, j < n. Could you…

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may…

Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. Input_1:Enter a list of arrays…

8=2+2+2+2= multiplying gives = 16highest factor in addition. 4= 2+2 = multiply = 4 9 = 3+3+3 = multiply = 27its greater common factor Input_1:Enter…

A chocolate factory is packing chocolates into the packets. The chocolate packets here represent an array arrt of N number of integer values. The task…

An integer interval [a,b] (for integers a < b) is a set of all consecutive integers from a to b, including a and b. Find…

pH stands for “power of Hydrogen(H)”A simple program.Write a Python Program to identify pH Level Name using the following condition.Ph <7.0 acidic Ph>7.0 basicPh=0 neutralA…

In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For…

Most years have 365 days. However, the time required for the Earth to orbit the Sun is actually slightly more than that. As a result,…

Input: Get three integers of positive as well as negative.Output: Prints the greatest integer.This program can also be used for N number of inputs Input: …

Given that represents elements of geometric progression in order.One element is missing in progression, find the missing number. It may be assumed that one term…

Write an algorithm to determine the encryption key.The input consists of an integer – numMessage, representing the numeric form of the message.The Output prints an…