No video

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

  Рет қаралды 31,528

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

Пікірлер: 55
@paridhijain7062
@paridhijain7062 2 жыл бұрын
This video helps. I like the way of discussion for the approach of the problem statement. Thanks for uploading such content for us.
@arpansamanta4175
@arpansamanta4175 2 жыл бұрын
Wow!! You are just bang on !!
@vennelapabbu5404
@vennelapabbu5404 3 жыл бұрын
Sir ,do the code in java, then we can easily convert into python c c++ ,if u write in python we can't easily convert the code into java.
@rahulraj28raj
@rahulraj28raj 3 жыл бұрын
hi if have code in c++ please send
@ritabratabhattacharya3075
@ritabratabhattacharya3075 3 жыл бұрын
Python is the best no need to do Java trash
@rahulraj28raj
@rahulraj28raj 3 жыл бұрын
@@ritabratabhattacharya3075 but i am not familiar with python ..so do u have code in java or c++
@065nidhifj3
@065nidhifj3 3 жыл бұрын
import java.util.*; public class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); int n=Integer.parseInt(s.nextLine()); int k=n*(n-1)/2; String[] teams=new String[n]; int[] score=new int[n]; for(int i=0;i
@Pban34
@Pban34 2 жыл бұрын
what if we provide 4 teams as input, it's not working please check
@rohitbagade9182
@rohitbagade9182 2 жыл бұрын
py kon use karta hai..... java vegere karo
@NOTOni
@NOTOni 2 жыл бұрын
Code in python 😭❤️tysm
@koushiksai490
@koushiksai490 2 жыл бұрын
def m1(i): li2=i if li2[0] not in teams: teams.append(li2[0]) if li2[2] not in teams: teams.append(li2[2]) if int(li2[4])>int(li2[6]): b=teams.index(li2[0]) marks[b]+=3 elif int(li2[4])
@parth1450
@parth1450 2 жыл бұрын
Nice video but can you use more informative name of variable in code... That would be helpful Thanks
@neeravsingh27
@neeravsingh27 3 жыл бұрын
How to write this code in C++?
@riteshpandey457
@riteshpandey457 3 жыл бұрын
Bhai i want to know that c pdhna jruri hai kya c++ subject main rkhke interview nhi de skte Please bhai btana i hope aap reply doge
@utkrishtdutta4867
@utkrishtdutta4867 3 жыл бұрын
C is a subset of c++.
@utkrishtdutta4867
@utkrishtdutta4867 3 жыл бұрын
If you know c++ you can easily learn c in few days. Mainly c is asked because it's basic language of coding.
@riteshpandey457
@riteshpandey457 3 жыл бұрын
@@utkrishtdutta4867 ok
@rahulraj28raj
@rahulraj28raj 3 жыл бұрын
@@utkrishtdutta4867 hi do u have c++ version of this code
@harshmalviya7
@harshmalviya7 3 жыл бұрын
We can use defaultdict in this complier?
@zainabbohra2915
@zainabbohra2915 2 жыл бұрын
sir please provide more question in python for placement
@SammuBumBumkiMumma
@SammuBumBumkiMumma 3 жыл бұрын
can you please provide this program in java
@065nidhifj3
@065nidhifj3 3 жыл бұрын
import java.util.*; public class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); int n=Integer.parseInt(s.nextLine()); int k=n*(n-1)/2; String[] teams=new String[n]; int[] score=new int[n]; for(int i=0;i
@aparnaagrawal8936
@aparnaagrawal8936 2 жыл бұрын
import java.util.*; public class TeamWin { public static int getScore(String a, String b) { int n1 = Integer.valueOf(a); int n2 = Integer.valueOf(b); if(n1>n2) return 3; else if(n1==n2) return 1; else return 0; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter no. of teams: "); int n = sc.nextInt(); Map map = new HashMap(); //System.out.println((n*(n-1)/2)); System.out.println("Enter team details"); sc.nextLine(); for(int k = (n*(n-1)/2); k>0; k--) { String input = sc.nextLine(); String []inputArray = input.split(" "); String score[] = inputArray[2].split("-"); int sum=0; if(map.containsKey(inputArray[0])) { sum = getScore(score[0],score[1]); map.put(inputArray[0], map.get(inputArray[0])+sum); } else { sum = getScore(score[0],score[1]); map.put(inputArray[0], sum); } if(map.containsKey(inputArray[1])) { sum = getScore(score[1],score[0]); map.put(inputArray[1], map.get(inputArray[1])+sum); } else { sum = getScore(score[1],score[0]); map.put(inputArray[1], sum); } } String winnerTeam=""; int winnerScore=0; for(Map.Entry m: map.entrySet()) { if(winnerScore
@mugiwara5375
@mugiwara5375 2 жыл бұрын
If you get it please respond
@SammuBumBumkiMumma
@SammuBumBumkiMumma 2 жыл бұрын
@@mugiwara5375 no
@snehaalensanthosh1900
@snehaalensanthosh1900 2 жыл бұрын
Sir, ur explanation is awesome. But i am not able to grasp the code, since it is written in python. Kindly use C or C++🙏
@Ppadira
@Ppadira 2 жыл бұрын
It's really heartbreaking to see that you are unable to grasp the easiest syntax in the world
@govindharayan2393
@govindharayan2393 Жыл бұрын
​@@Ppadira we hate python coz it sucks during exam
@gauravchaudhary5128
@gauravchaudhary5128 3 жыл бұрын
Can we solve such questions in pl/sql??
@njuuus7928
@njuuus7928 2 жыл бұрын
Did anyone received any mail regarding tcs ninja toppers exam schedule??
@aaryasuresh9964
@aaryasuresh9964 2 жыл бұрын
yes it is tomorrow
@ganeshshingre1390
@ganeshshingre1390 Жыл бұрын
no=int(input()) t=(no*(no-1))//2 teams=[] scorelist=[] for i in range(0,t): temp=input() li=list(temp.split(" ")) score=eval(li[2]) if score == 0: if li[0] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[0]: s=scorelist[j][1] s=int(s)+1 scorelist[j][1]=s else: ts=[li[0],1] scorelist.append(ts) teams.append(li[0]) if li[1] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[1]: s=scorelist[j][1] s=int(s)+1 scorelist[j][1]=s else: ts=[li[1],1] scorelist.append(ts) teams.append(li[1]) elif score >0: if li[0] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[0]: s=scorelist[j][1] s=int(s)+3 scorelist[j][1]=s else: ts=[li[0],3] scorelist.append(ts) teams.append(li[0]) if li[1] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[1]: s=scorelist[j][1] s=int(s)+0 scorelist[j][1]=s else: ts=[li[1],0] scorelist.append(ts) teams.append(li[1]) else: if li[0] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[0]: s=scorelist[j][1] s=int(s)+0 scorelist[j][1]=s else: ts=[li[0],0] scorelist.append(ts) teams.append(li[0]) if li[1] in teams: for j in range(0,len(scorelist)): if scorelist[j][0]==li[1]: s=scorelist[j][1] s=int(s)+3 scorelist[j][1]=s else: ts=[li[1],3] scorelist.append(ts) teams.append(li[1]) ans=scorelist[0] for k in range(1,len(scorelist)): if ans[1]
@mugiwara5375
@mugiwara5375 2 жыл бұрын
Code in java please.
@user-fz1cj8rh6k
@user-fz1cj8rh6k 3 жыл бұрын
Does TCS DIGITAL HAS BOND anyone know please reply????
@noobmaster69jr
@noobmaster69jr 3 жыл бұрын
Yup 2 years I think
@ius_ayush_
@ius_ayush_ 3 жыл бұрын
1 year bond
@amansoni6335
@amansoni6335 Жыл бұрын
a=int(input()) team=[] score=[] for j in range(a): team.append(chr(j+65)) score.append(0) for i in range((a*(a-1))//2): b=input().split() c=int(b[-1][0])-int(b[-1][-1]) if c>0: score[team.index(b[0])]=score[team.index(b[0])]+c elif c
@babymuff2000
@babymuff2000 2 жыл бұрын
Pls code in C 😭
@pratikdevdaspatil3494
@pratikdevdaspatil3494 2 жыл бұрын
#include #include using namespace std; map score2; void insert_score_3(string team1) { map::iterator itr; for (itr = score2.begin(); itr != score2.end(); ++itr) { if(team1==itr->first) { int k = itr->second; itr->second = k+3; } } } void insert_score_1(string team1) { map::iterator itr; for (itr = score2.begin(); itr != score2.end(); ++itr) { if(team1==itr->first) { int k = itr->second; itr->second = k+1; } } } int main() { cout
@pratikdevdaspatil3494
@pratikdevdaspatil3494 2 жыл бұрын
IN C++ Hope it helps.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 15 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
How to make Notes for Coding? Data Structures & Algorithms
19:29
Apna College
Рет қаралды 1,4 МЛН
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 57 М.
How hosting 2036 Olympics will ruin India? | Economic Case study
19:44
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 15 МЛН