## Bicoloring competitive programming question

Bicoloring Online judge (10004) problem with solution in python In 1976 the “FourColorMapTheorem” was proven with the assistance of a computer. This theorem states that every map can be colored using only four colors, in such a way that no …

## Tug Of War Competitive Programming question

Tug Of War Problem Statement : Given a set of n integers, divide the set in two subsets of n/2 sizes each such that the difference of the sum of two subsets is as minimum as possible. If n is …

## Smith Number competitive programming question

Smith Number Description : A number is said to be a smith number if sum of digits of the number is equal to the sum of the digits of its prime factors (excluding 1). We have to find factors using …

## Print fraction and integer part of a float number separately

Question: Write a Program to take fraction Number as input from console and connect the given fraction to a floating point number and then extract the integer part and the fractional part of that floating point number.  Example input: 22.34 …

## Print nth term in Fibonacci series for the inputted number

Question: Write a program to take two integer inputs from console. Number and N and print nth term in fibonacci series for the inputted Number.  Fibonacci series :0,1,1,2,3,5,8,13,21,34,55,89,144 and so on. Example input : 5  3 Example output: 21  source code …

## HackerRank SDE Summer Internship 2022

SDE Summer Internship 2022 Hello Guys, I am back with an another opportunity. HackerRank recently launched a internship opportunity for engineering students who are obsessed with writing great code that will be used by other great engineers around the world.  HackerRank …

## Prime Sum competitive programming

Question : Consider a  integers innum . Find and print a number outnum based on the below logic: Using prime number range from 1 to n (both inclusive)  Find those Four number have sum is equal to given innum  . if there is combination …

## Harshad Matrix | Springboard coding question solution

Harshad Matrix Infosys springboard coding question with solution Problem Statement : Given a m x n matrix inmatrix of positive integers, write a program to print outmatrix based on the below logic: • Identify all 2×2 sub-matrix/matrices in inmatrix where each element is …

## Form smallest number | Springboard coding question solution

Form smallest number Infosys springboard coding question with solution Problem Statement : Consider a non-empty array inarr consisting of non-zero unique positive integers separated by”,”(comma) and a positive integer innum which denotes the maximum number of swaps allowed. Write a …

## Longest alternating sub-sequence | Springboard coding question solution

Longest alternating sub-sequence Infosys springboard coding question with solution Problem Statement : Consider a non-empty string instr containing only lower case alphabets. Print the output based on the below logic: • Identify and print the longest sub-sequence of at least …