No video

TCS Digital Advanced Coding Question (2022 Batch) TCS Digital Coding Preparation

  Рет қаралды 79,481

TalentBattle.in

TalentBattle.in

Күн бұрын

Join the Placement Preparation Whatsapp Group, Telegram Channel and Instagram Page here: bit.ly/3qKUG5M
Join TCS Digital LIVE Masterclass: talentbattle.i...
***************************************
Join TCS NQT LIVE Masterclass(Includes TCS Digital Training): talentbattle.i...
***************************************
Join the Complete Placement Preparatory LIVE Masterclass here: talentbattle.i...
***************************************
Aptitude Cracker Course: bit.ly/2Vad4Gn
***************************************
10 hours of live training to start with your aptitude preparation!
START YOUR APTITUDE PREPARATION TODAY!- bit.ly/35JZ8Z1
#tcsdigital #tcsdigitalquestions #tcsdigital2022

Пікірлер: 131
@shobhittiwari8895
@shobhittiwari8895 3 жыл бұрын
What about 2 & 4 ? According to logic 2 & 4 should also be there in array. Then in such case it'll be 8,7,4,2 in array. Timeline 12:15
@sarathchandra1087
@sarathchandra1087 3 жыл бұрын
But the value of a becomes a=a/i Once u find a factor
@shobhittiwari8895
@shobhittiwari8895 3 жыл бұрын
@@sarathchandra1087 oh yes! Okay thanks for the help brother.
@himanshujaviya6021
@himanshujaviya6021 2 жыл бұрын
@@sarathchandra1087 didn't understand ? How 4& 2 will not get stored in array
@chandanbanerjee3721
@chandanbanerjee3721 3 жыл бұрын
This is absolutely great. Pls cover more tcs digital qstns before 7th Aug. It would be immensely helpful to us.
@this_is_souvik
@this_is_souvik 3 жыл бұрын
Will the TCS DIGITAL exams in different colleges be conducted on 7th August? We just got informed today...but we don't know the exam dates yet.
@prasannanivas4575
@prasannanivas4575 3 жыл бұрын
@@this_is_souvik me too ,
@ritikabera9536
@ritikabera9536 3 жыл бұрын
@@this_is_souvik same here .
@Kps_world
@Kps_world 3 жыл бұрын
@@this_is_souvik yes it is informed that the exam will be conducted on the dates 7 and 8 th of August
@mohitchaudhari3398
@mohitchaudhari3398 3 жыл бұрын
This question is one of the toughest for me
@funfacts7972
@funfacts7972 3 жыл бұрын
Could you please tell the topics that we need to concentrate on, for infytq technical and behavioral interview round for system engineers role?
@satyamtiwari6428
@satyamtiwari6428 2 жыл бұрын
Great explanation thanq for providing it for free. Huge respect❣️
@mahendraranadeep7105
@mahendraranadeep7105 3 жыл бұрын
in the condition for while loop we are checking if "a" is divisible by numbers 2-9.. what if the numbers are divisible by the numbers greater than 9 like 121-->(11*11) and 169-->(13*13) and so on there answers must be like 1111 and 1313.for this case it shows not possible .is it ok for this case??
@AyushSingh-wt7qz
@AyushSingh-wt7qz 2 жыл бұрын
It was great listening you and understanding this question, it was so well explained, some channels like prep insta is defaming so good channel like yours without any reason.Thank you sir.
@PreparewithTalentBattle
@PreparewithTalentBattle 2 жыл бұрын
Thanks for the feedback🙂 defaming others is one way to do business when one doesn't have good things to tell about oneself😂 anyways we will always give best quality to our students🙂
@babymuff2000
@babymuff2000 2 жыл бұрын
@@PreparewithTalentBattle damm , the response is 😭😭😭
@govindharayan2393
@govindharayan2393 Жыл бұрын
​@@babymuff2000 army everywhere
@vijyalaxmiwadle6317
@vijyalaxmiwadle6317 3 жыл бұрын
Is there any restrictions for no.of compilation like only 10 time you can compile in tcs digital
@KD-xi9wu
@KD-xi9wu 3 жыл бұрын
10:03 why iterating from 9 to 1, cant we iterate from 1 to 9.
@pavankumar6416
@pavankumar6416 3 жыл бұрын
If we iterate from 1 to 9 , we will get output for 56 as 2*2*2*7 . Which will return 2227. But we need 78 . So iterate from 9 to 1 . We will get 8*7. And then we can sort
@bhuvanpolimera3344
@bhuvanpolimera3344 2 жыл бұрын
sir as u said 13>10 and 56,and 150 also greater than 10 how it is possible
@souravbhadra9088
@souravbhadra9088 3 жыл бұрын
Sir, can I take the size of the array, like what input number the user will provide?
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
sir we can use ArrayList concept in java to store factors,bcoz taking an array of size 10000 means so much wastage of space
@aditya-nn4qm
@aditya-nn4qm 3 жыл бұрын
But he is coding in c++
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
@@aditya-nn4qm that is the reason why I have specified the word "in java "
@srinav2896
@srinav2896 3 жыл бұрын
Use Vectors
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
@@srinav2896 yeah even that is a good thing
@suryatejaduppanapudi2023
@suryatejaduppanapudi2023 3 жыл бұрын
Sir its wrong i guess because when u take input 56 , the array stores elements .. 8,7,2 when we reverse it it gives 278 for same if we give 150 , how two 5's are inserting into the array. pls correct it idk how code worked with this logic
@saisree467
@saisree467 3 жыл бұрын
noo because first we are checking a%8 and reducing a to a/8 => a value changes to 56/8=7 now a=7 and 7 will be checked and if divisible it's value will be changed (i.e a%7 => 7%7==0 so a=a/7 => a=7/7=1)
@suryatejaduppanapudi2023
@suryatejaduppanapudi2023 3 жыл бұрын
@@saisree467 ok got it thanks 👍
@sevenhours1137
@sevenhours1137 3 жыл бұрын
very helpful, could you guys make one more vid.....
@shivamyadav6369
@shivamyadav6369 3 жыл бұрын
Yes please tallentbattle
@ESECTSARANYA
@ESECTSARANYA 3 жыл бұрын
Awesome explaination... thanks u
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Glad you liked it
@ParasVashishth_RV
@ParasVashishth_RV 3 жыл бұрын
For third case, you can just put if(a!=1){ NOT POSSIBLE}. right???
@-ACVIMALRAJ
@-ACVIMALRAJ 3 жыл бұрын
sir, will upload daily one question for TCS digital?
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Not Daily but we will try our best to post as much as possible🙂
@vinamrajha1571
@vinamrajha1571 Жыл бұрын
nice logic n explanation
@mahabirneogy7195
@mahabirneogy7195 2 жыл бұрын
is java necessary for tcs interviews?
@lingeshwarang7108
@lingeshwarang7108 3 жыл бұрын
#python #now only started learning python ..code goes like a train a=int(input()) pri=0 for i in range(2, a//2): if (a % i) == 0: pri=1 if(pri==1): count=0 x=a while x>0: x=x//10 count=count+1 if(count==2): list=[] abd=[] for i in range(1,10): if a%i==0: c=round(a/i) d=c*i if d==a: first=str(i)+str(c) second=str(c)+str(i) list.append(first) list.append(second) for m in list: abd.append(int(m)) abd.sort() print(abd[0]) if(count==3): listu=[] msd=[] for i in range(1,10): for j in range(1,10): for k in range(1,10): if (i*j*k)==a: fir=str(i)+str(j)+str(k) sec=str(j)+str(k)+str(i) thi=str(k)+str(i)+str(j) listu.append(fir) listu.append(sec) listu.append(thi) for ms in listu: msd.append(int(ms)) msd.sort() print(msd[0]) else: print("not possible")
@rajdeepsaha5362
@rajdeepsaha5362 2 жыл бұрын
For 150 it is divided into 3 and 50 so 350
@parthibbhattacharya1069
@parthibbhattacharya1069 Жыл бұрын
50 is double digit. We cannot consider multiplying double digit numbers.
@lokeshgehlot3107
@lokeshgehlot3107 3 жыл бұрын
If we start the loop from 1 instead of 9 then can we get?? In ascending order
@MOHITHSARAN
@MOHITHSARAN 3 жыл бұрын
yeah bro even i got the same doubt
@MOHITHSARAN
@MOHITHSARAN 3 жыл бұрын
I tried this method but the execution of the code takes so long. So when we do this method in the exam the cases gets failed so we have to follow the sir's method
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
no bro in that case if we take 20 as example, it will print 2, 10 times
@janakpatel9477
@janakpatel9477 3 жыл бұрын
no bro because we are trying to reduce the factors for example a = 24 then, actual factors are 2,2,2,3 but what we need is 4,6 as factor that's why we follow reverse order so we get big factor initially and later on smaller factors but if we go 1-->9 then we get all smaller factors first and rarely any big factor
@Mindsetmagic124
@Mindsetmagic124 2 жыл бұрын
Hi, I hope all of you are well Actually, I got an offer from TCS last September. At that time I had a plan for higher studies. That's the reason I'm not accepting an offer but now because of my family situation, I can't go for further higher studies. so, now I wanna be interested in attending TCS digital so, in my portal, I can't see any option for applying for a drive. Please give some suggestions to register for a TCS digital drive 2022.
@karan6651
@karan6651 3 жыл бұрын
Sir can you please tell me,How Many Apti and Coding question will be there in Tcs digital Aug 2021Exam.And Second Doubt is Will there be setwise apti,English and Coding question Or it will be same for all.
@ramgawali6087
@ramgawali6087 Жыл бұрын
can someone please explain me the case of 150 I m getting confused that how can it store 5 two times
@niteshbiradar2682
@niteshbiradar2682 3 жыл бұрын
Sir, could u please use python language
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
We will provide you code in python of this question tomorrow🙂
@maverickajay9081
@maverickajay9081 3 жыл бұрын
n=int(input()) l=[] if n=10: for i in range(9,1,-1): while n%i==0: n=n/i l.append(i) if n>10: print('Not Possible') else: for i in range(len(l)-1,-1,-1): print(l[i],end='')
@aslamshah3636
@aslamshah3636 3 жыл бұрын
num = int(input()) if num < 10: print(num+10) else: lis = [] i = 9 while i > 1: if num % i == 0: lis.append(i) num = num / i else: i -= 1 if len(lis) > 0: lis.sort() for j in lis: print(j, end="") else: print("Not possible")
@arnabbasu4514
@arnabbasu4514 3 жыл бұрын
@@maverickajay9081 bro can u say why u have written this line if n>10: print('Not Possible')
@prathikv3065
@prathikv3065 3 жыл бұрын
@@arnabbasu4514 for prime numbers n wont be divisible by any number.I think you can also write n!=1 as a condition too. Basically if given no. is composite then final n has to be 1 in any case.
@vishalir1079
@vishalir1079 3 жыл бұрын
for not possible case why cant we check for prime
@parthibbhattacharya1069
@parthibbhattacharya1069 Жыл бұрын
in line 32, where is that 'm' variable coming from?
@codespace747
@codespace747 3 жыл бұрын
Nice question
@anik4929
@anik4929 Жыл бұрын
Solve with recursion...brute force might not always give the correct result
@KD-xi9wu
@KD-xi9wu 3 жыл бұрын
Please upload more videos
@raghv_0477
@raghv_0477 3 жыл бұрын
This code will not work for prime multiplied factor like 221=13*17 whose answer is not possible according to this code, but according to me it's answer is 1317. Am I right?
@knandu6570
@knandu6570 3 жыл бұрын
no, because product of your answer is 1*3*1*7=21 but not 221
@subha1818
@subha1818 3 жыл бұрын
Is this even mathematically possible to always have a number whose digits will multiply to produce the input no?? What about 154??
@KIDA-WAV
@KIDA-WAV 3 жыл бұрын
No that's why he has given not possible case i.e 1) 154%2==0 then a becomes 154/2=77 & array[0] = 2 2)77%7==0 then a = 77/7 =11 & array[1] = 7 3)we won't get anything from modulo so last condition will be checked i.e a is 11 i.e>10 final output will be "not possible"
@anwaydeepnath5017
@anwaydeepnath5017 2 жыл бұрын
I got the mail..the test is for 2 hrs
@vishalir1079
@vishalir1079 3 жыл бұрын
what is that m ? the variable m is not declared anywhere .
@mohitpatel1641
@mohitpatel1641 3 жыл бұрын
hey the logic is not correct 56 is further divided by the 4,6,2 and the array increase
@krishnasaimuniganti1495
@krishnasaimuniganti1495 3 жыл бұрын
26:06 watch line no. 27 Here 'a' is modified when while is true. Hope you got it by now.
@yashk5076
@yashk5076 3 жыл бұрын
Do we have to code in only C++ or options are given like python,java etc ?
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
All options available
@ashoksinha5413
@ashoksinha5413 3 жыл бұрын
Array me 56 ka factors 4 aur 2 bhi ayega toh kaise hoga reverse krke
@hrishikeshwadge1610
@hrishikeshwadge1610 3 жыл бұрын
I am not given any TCS exam can I directly apply for digital
@saikumarg1825
@saikumarg1825 2 жыл бұрын
what if the input is a=81 what is the result, i think the result will not be equal to 99
@shayanbarua85
@shayanbarua85 3 жыл бұрын
What will be case for 121 or 169
@gazalkhan8124
@gazalkhan8124 3 жыл бұрын
Can you do this in c or in java plz ?
@samujjalghosh8520
@samujjalghosh8520 3 жыл бұрын
Can you please upload some more TCS Digital previous year questions ?
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Sure we will stay tuned😊
@CaptainAmerica-nj2sk
@CaptainAmerica-nj2sk 2 жыл бұрын
Isn't it wrong? Coz if we take 56%i==0. 2 will also be a factor and 4 also so the array will have 7,8,4,2.
@parthibbhattacharya1069
@parthibbhattacharya1069 Жыл бұрын
I have the same question
@technoenthusiast1732
@technoenthusiast1732 Жыл бұрын
No a variable is updated inside the while loop as a/8 =7 wether a is 56 then it will be 7...
@funfacts7972
@funfacts7972 3 жыл бұрын
Informative vedio
@funfacts7972
@funfacts7972 3 жыл бұрын
*video
@MERNavinkumaar
@MERNavinkumaar 3 жыл бұрын
Sir,I have a huge doubt.will tcs call a prefinal year for interview student after tcs NQT exam?.If yes,when they will do so?
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Just check this Instagram post :instagram.com/p/CPTWE_RLySmlLZXIUSgWHo2pti3pjPBuyYPgS40/? It will clear your doubts 🙂
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
same doubt bro, if clarified just reply me
@Youth.4love
@Youth.4love 3 жыл бұрын
Nice video
@ramanshsangal9297
@ramanshsangal9297 3 жыл бұрын
The answer for 150 shoulde be 275??
@shivamSingh-oj5zv
@shivamSingh-oj5zv 3 жыл бұрын
Same problem bro 275 is less than 556 if u know the correct ans pls help
@ramanshsangal9297
@ramanshsangal9297 3 жыл бұрын
@@shivamSingh-oj5zv i guess we had to take factors less than 10 only
@shivamSingh-oj5zv
@shivamSingh-oj5zv 3 жыл бұрын
@@ramanshsangal9297 but 2,7,5 are less than 10 only
@ramanshsangal9297
@ramanshsangal9297 3 жыл бұрын
@@shivamSingh-oj5zv i mean like 5*5*6 all are less than 10..but 2*75, here 75 violates the condition
@movvamanish1467
@movvamanish1467 3 жыл бұрын
@@ramanshsangal9297 the logic is 2*7*5 is 70 but u should get 150 by multiplying the digits
@rehanchougale938
@rehanchougale938 3 жыл бұрын
Thank you sir❤️
@guruprasad-ev7py
@guruprasad-ev7py 3 жыл бұрын
Please slove nqt based questions also 🙏🙏🙏🙏
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Sure Stay Tuned :-)
@PialRoy
@PialRoy 2 жыл бұрын
What if the input is 85 85 = 17*5
@yadneshnalawade6939
@yadneshnalawade6939 2 жыл бұрын
I also encountered the same doubt initially but if the number is 85 then one of its factor is 17 (prime and more than 1 digit) hence it will print Not possible because we can't divide 17 further (into single digits)..
@ayushyadav2580
@ayushyadav2580 3 жыл бұрын
But what is n=4 then it prints 4 but it should be 22 as per the condition...
@AnkitGupta-tp6nr
@AnkitGupta-tp6nr 3 жыл бұрын
It will print 14 as the result of first case
@motovlog4154
@motovlog4154 3 жыл бұрын
22 bro we cannot use 1
@Lionelmessi-zp9vt
@Lionelmessi-zp9vt 3 жыл бұрын
@@motovlog4154 who said we cant use 1 ?
@kartikamashal6408
@kartikamashal6408 3 жыл бұрын
1) Logical Explanation is not proper, 2) if I give 999 as input its will give 39 as output which is incorrect.
@hrishikeshwadge1610
@hrishikeshwadge1610 3 жыл бұрын
In digital what is pattern of exam
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
Check this link: talentbattle.in/companies/tcs-digital
@hrishikeshwadge1610
@hrishikeshwadge1610 3 жыл бұрын
How many coding question is given in digital exam
@RahulSingh-ze8mk
@RahulSingh-ze8mk 3 жыл бұрын
1
@shobhittiwari8895
@shobhittiwari8895 3 жыл бұрын
2
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
There are 2 coding questions
@PremKumar-yy2yd
@PremKumar-yy2yd 2 жыл бұрын
What is the answer if a = 104? Will it be 138? Because 8*13 = 104.
@sri_G
@sri_G 3 жыл бұрын
Sir can u plz solve it in C language
@PreparewithTalentBattle
@PreparewithTalentBattle 3 жыл бұрын
We will try to provide code in C language also🙂
@Dharmendrakumar-be3bv
@Dharmendrakumar-be3bv 3 жыл бұрын
First view
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 33 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 9 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 9 МЛН
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 58 М.
TCS Digital Aptitude Questions and Answers
44:47
Prep Insta
Рет қаралды 17 М.
Why UK 🇬🇧 is going Bankrupt? : Detailed Economic Case Study
20:37
Think School
Рет қаралды 1,5 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 944 М.
It's time for change, it's time for Linux.
10:53
DankPods
Рет қаралды 234 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 39 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН