Constellation Three characters { #, *, . } represents a constellation of stars and galaxies in space. Each galaxy is demarcated by # characters. There can be one or many stars in a given galaxy. Stars can only be in the shape of vowels { A, E, I, O, U }. A collection of * in the shape of the vowels is a star. A star is contained in a 3x3 block. Stars cannot be overl…
Read moreThe Saga of the Missing Coin A teacher came into the class with a large box that has several coins. Each coin has a number printed on it. Before coming to the class, she ensured that all the numbers occur an even number of times. However, while coming to the class once coin fell down and got lost. She wants to find out the number of the missing coin. Samp…
Read moreSober Walk Our hoary culture had several great persons since time immemorial and king vikramaditya’s nava ratnas (nine gems) belongs to this ilk.They are named in the following shloka: Among these, Varahamihira was an astrologer of eminence and his book Brihat Jataak is recokened as the ultimate authority in astrology. He was once talking with Amarasimha,another g…
Read moreOddly Even TCS NQT Given a maximum of 100 digit numbers as input, find the difference between the sum of odd and even position digits. Input : 4567 Expected output: 2 Explanation Here, the sum of odd position digits 4 and 6 is 10. The Sum of even position digits 5 and 7 is 12. The difference is 12-10 = 2. Logic Take input as string hence you can check t…
Read moreTCS NQT August 2021 Announced! Get Your Dream Job! Greetings mate! I have the happiest news of the hour for you. TCS has opened the registrations of the TCS National Qualifier Test for the August and November 2021 exams. Who can apply TCS NQT? How to apply TCS NQT? Where to apply for TCS NQT? Which NQT variant is perfect for you? I have answered all these q…
Read more
tcs
Copyright © 2021 Coding Demons All Rights Reseved
Social Plugin