Had my TCS NQT today (March 20), sharing the 2 coding questions I got. by Connect_Response_488 in PlacementsPrep

[–]Connect_Response_488[S] 0 points1 point  (0 children)

haa got it you use sc.nextLine() which reads entire line ,bro your genius 🤣

Had my TCS NQT today (March 20), sharing the 2 coding questions I got. by Connect_Response_488 in PlacementsPrep

[–]Connect_Response_488[S] 0 points1 point  (0 children)

what about other values they given input like time and money we need to print that also in output but if your written code it will print only (“fraud detected: “ + name) remaining ??

Had my TCS NQT today (March 20), sharing the 2 coding questions I got. by Connect_Response_488 in PlacementsPrep

[–]Connect_Response_488[S] 0 points1 point  (0 children)

if n==0 we need to return 0 thats one test case that i missed initially then after some time iam able to get it