TCS NQT coding questions

Today i have attended the tcs nqt test.I have got 2coding questions in which one question is given 15min time and other 35 minutes.The questions are as follows:
1)you are given two integers a and b and a variable x which is intialised to 0.you need to add a continously to a and check in each iteration whether x continously divided by b gives 1 as quotient.
2)you are given a word in which the letters are only lower case.you need to remove one letter from the word such it makes the count of each letter is same.
eg:yummy
on removing u we get 2 y and 2 m which makes it true.
stop all character count is same so return true

Comments (7)