## Python | Spilt a sentence into list of words

Given a Sentence, write a Python program to convert the given sentence into list of words. Examples: Input : [‘Hello World’] Output : [‘Hello’, ‘world’]… Read More »

## Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1

Given an array A containing N elements (N is divisible by 3), the task is to split the numbers into groups of 3, let the… Read More »

## Check if the given string is the same as its reflection in a mirror

Given a string S containing only uppercase English characters. The task is to find whether S is the same as its reflection in a mirror.… Read More »

## Check if an array of 1s and 2s can be divided into 2 parts with equal sum

Given an array containing N elements, each element is either 1 or 2. The task is to find out whether the array can be divided… Read More »

## Make a tree with n vertices , d diameter and at most vertex degree k

Given three integers N, D and K. The task is to check whether it is possible to make a tree with exactly N vertices, D… Read More »

## Sum of all Submatrices of a Given Matrix

Given a NxN 2-D matrix, the task to find the sum of all the submatrices. Examples: Input : arr[] = {{1, 1}, {1, 1}}; Output… Read More »

## Python | Get sum of tuples having same first value

Given a list of tuple, the task is to sum the tuples having same first value. Examples: Input: [(1, 13), (2, 190), (3, 82), (1,… Read More »

## Maximum Bitwise AND pair from given range

Given a range [L, R], the task is to find a pair (X, Y) such that L ≤ X < Y ≤ R and X… Read More »

## Split the array into odd number of segments of odd lengths

Given an array of n length. The task is to check if the given array can be split into an odd number of sub-segment starting… Read More »

## Python | Initialize a dictionary with only keys from a list

Given a List, the task is to create a dictionary with only keys by using given list as keys. Let’s see the different methods we… Read More »

## Java Programming Basics

Java is one of the most popular and widely used programming language and platform. A platform is an environment that helps to develop and run… Read More »

## Minimum removals to make array sum odd

Given an array Arr[] of N integers. The task is to find minimum number of elements needed to be removed from the array, so that… Read More »

## Check whether the number can be made perfect square after adding 1

Given an integer N, the task is to check whether N the given number can be made a perfect square after adding 1 to it.… Read More »

## egrep command in Linnux with examples

egrep is a pattern searching command which belongs to the family of grep functions. It works the same way as grep -E does. It treats… Read More »

## Cisco NCG Position Interview

Round 1: Webex interview – Tell me about yourself. Linked list question to sort into odd and even. Round 2: Webex interview: started with questions on binary… Read More »