TCS Ninja Coding Questions | Previous Year Questions (2023 Batch) TCS Ninja Preparation!

TCS Ninja Coding Questions | Previous Year Questions (2023 Batch) TCS Ninja Preparation!

TalentBattle.in

2 года назад

41,070 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ganesh reddy
Ganesh reddy - 30.10.2023 19:07

from math import pi
r=float(input())
ans=2*pi*r
v=round(ans,2)
print(v)

Ответить
Ganesh reddy
Ganesh reddy - 30.10.2023 17:54

n1=int(input())
n2=int(input())
n3=int(input())
list=[n1,n2,n3]
list.sort()
print(list[1])

Ответить
Abbas Hussain
Abbas Hussain - 17.09.2021 12:56

For (Q2)
For Folks doing in java,
While printing the output in 2 precision, simply write , System.out.printf("%.2f",circumference)

Ответить
Abbas Hussain
Abbas Hussain - 17.09.2021 12:29

For (Q1), in java, we can store the numbers in an array and sort them (Ascending Order) and then simply print the last second number, which is our required answer...
Time Complexity: O(n log n)
Hope it helps...

Ответить
Ashutosh Ambule
Ashutosh Ambule - 09.09.2021 11:46

Please guys No need to take Radius as a float
It gives error or wrong ans !!!!!!!

Ответить
Kumar Deepak
Kumar Deepak - 05.09.2021 05:55

Else if (n2 >n3) k jagah pr (n1>n3) hoga,

Ответить
Amman Khan
Amman Khan - 25.08.2021 00:58

But this is very easy

Ответить
Ashutosh Vyas
Ashutosh Vyas - 20.08.2021 17:47

is this coding of Q1 holds good for 132

Ответить
Harsha
Harsha - 11.08.2021 16:30

second greatest more simplified
________________________
import java.util.*;
import java.io.*;
import java.util.Scanner;
public class Main{
public static void main (String[]args)
{
Scanner s = new Scanner (System.in);
int a = s.nextInt (), b = s.nextInt (), c = s.nextInt ();

if (((a > b) && (a < c)) || ((a > c) && (a < b)))
System.out.println (a);
else
System.out.println ((((b > c) && (b < a)) || ((b > a) && (b < c))) ? b : c);

}}

Ответить
DAMA VENKATA SOWJANYA
DAMA VENKATA SOWJANYA - 10.08.2021 07:44

where to practice coding questions for tcs nqt.can u plz suggest any website.

Ответить
DAMA VENKATA SOWJANYA
DAMA VENKATA SOWJANYA - 10.08.2021 07:42

as shown in the video questions will be in the direct manner like that or matter will be given.

Ответить
Jaanu Jaanu
Jaanu Jaanu - 09.08.2021 14:50

Sir can you say in c++

Ответить
Rehan Karol
Rehan Karol - 29.07.2021 11:19

Can we use priority queue in this?

Ответить
Suman Kumar Das
Suman Kumar Das - 24.07.2021 19:03

Sir 2nd largest no question is 30 marks or 15 marks??

Ответить
Dhananjay Biraris
Dhananjay Biraris - 22.07.2021 22:05

can we use only python lang for coding in TCS ninja

Ответить
MANOGNA BIJJAM
MANOGNA BIJJAM - 22.07.2021 18:54

Are these pyqs😳?

Ответить
Yashwant Salunke
Yashwant Salunke - 22.07.2021 11:21

Sir what is salary package does tcs Ninja provide?

Ответить
Aditya Banerjee
Aditya Banerjee - 21.07.2021 22:15

Sir, can you pls tell me can I use pre defined functions(e.g. Max, Min, Factorial) of Python in the exam ?

Ответить
Aditya Banerjee
Aditya Banerjee - 21.07.2021 22:14

Thank you for this type of videos. Want more of prev year question of TCS Ninja exam.

Ответить
Surbhi
Surbhi - 21.07.2021 18:59

Sir can I write program in python in tcs ninja bcz all r saying python compiler sucks

Ответить
RAMYA BHARATHY R
RAMYA BHARATHY R - 21.07.2021 14:51

Will they ask such easy programs ? they will only ask tougher programs know?

Ответить
ArjunKiZindage
ArjunKiZindage - 21.07.2021 14:50

Itna easy ayega ?

Ответить
Nalla Rajesh
Nalla Rajesh - 21.07.2021 13:42

If any two inputs are equal. then the code is not possible

Ответить
jagriti srivastava
jagriti srivastava - 21.07.2021 12:05

Thank you sir
Please upload more videos

Ответить
Siddharth Yankanchi
Siddharth Yankanchi - 21.07.2021 10:40

A=[2,8,5]
A.sort()
Print(a[1])
Just 3 lines but it will have a time complexity of i guess O(n)

Ответить
naya trendz
naya trendz - 21.07.2021 09:55

i think its not working

Ответить
V Chandu
V Chandu - 21.07.2021 09:30

Is python available???

Ответить
It'z Manny
It'z Manny - 21.07.2021 09:23

What about java

Ответить
Hemanth reddy Poreddy
Hemanth reddy Poreddy - 21.07.2021 09:19

Can we write the same in python sir???

Ответить