A society has multiple apartments, and each apartment has a certain number of people living in it asked in wipro feb 2022

A society has multiple apartments, and each apartment has a certain number of people living in it. A maximum of 9 people is allowed to live in one apartment. The society secretary would like an automated system that takes the number of people living in each apartment and combines it to form a string, providing information for all the apartments where an odd number of people are living. Write an algorithm to make an automated system that will find all the odd digits from the given number.




Comments

Popular posts from this blog

EV Minimize Array Cost asked in Infosys- march 2022 (available in c++ only)

Complete Binary tree(CBT) and Almost Complete Binary tree(ACBT): Total nodes and formulae :

PERFECT SQUARE asked by MountainBlue