integers

PythonF

Integers – Parity Sort

The program must accept N integers as the input. The program must sort the integers based on the parity (Even parity followed by Odd…
CF

Integers & Operators

The program must accept N integers and a string containing N-1 arithmetic operators (+, -, * and /). The program must form an arithmetic…
PythonF

Sort Integers based on Ones

The program must accept N integers as the input. The program must sort the integers based on the number of ones in their binary representation…
CF

Sum of Two Integers Equal to K

The program must accept N integers and an integer K as the input. The program must print yes if the sum of any two integers among the N…
PythonF

Two Integers Plus or Minus

The program must accept two integers A,B separated by a string S (whose value is plus or minus). Based on the string value S, the program must…