TCS 2020 MOCKVITA

Yes ā€¦
I think muje ek article likhna hi padega :rofl:

and they post on social media like this ā€”

XYZ student got placement in ABC company with "whooping money of 3.6 LPA ", and Iā€™m be like Bhagwan se to daro ****

3 Likes

Forcing students is never a good idea, and colleges (especially in India) will never understand that,
and it eventually leads to cheating in contestsā€¦ This is a major reason why so many cheaters are from India.

1 Like

or bhai uske niche 36 comment milengi or un sabme ek cheez common hogi ā€œAsst. Professor at this collegeā€.

1 Like

Ha bhai likho ekā€¦ye second problem m N and Array element eksath de diya ek line m, m socha size ka input kaha hšŸ˜‚

Read this thread , and u get to know , that tcs wale gaanja maarke bethte hai :rofl:

From last year I and smit , and samarth discuss on this question .

Same or udhar bola hai ki first line mein N milega or 2nd line mein Array element. Jabki pura sample input, 1 line mein hai. Python wale RIP.

Why RIP , as I said u have to deal with it

ls = list(map(int,input().split(' ')))
sz = ls[0]
n_ls = ls[1:]

bhai D wale question mein N sach mein diya hua hi nahi hai.

Edit: logout ho gaya or 15 min wait krne ko bol raha hai.

Mujhe python use karna padhašŸ˜‚

If u need ā€™ , ā€™ separated array in c++ then -

int n;
cin>>n;
int arr[n];
char ch;
for(int i=0;i<n;i++)
 {
      cin>>a[i];
      if(i!=n-1)
         cin>>ch;
 }

Same Problem. I logged in then after two minutes It said that your session is timed out please login again and when I tried to log in again It shows same error as yours.

1 Like

Matlab ye codevita wale, agar unique question na banaye, to aesa problem denge ki participant input e na le paye lol

2 Likes

3 to 4 questions were easy but 5th and 6th is too hard .

agar aise problems codevita ke din par hue toh ? koi tips regarding this ?

Monkey wala to bohot easy h. Death battle ka no idea

nahi bhai pichli baar i guess ek prime number find krne ka question tha. Or wo Sqrt(N) complexity ke saath bhi TLE de raha tha. I canā€™t remember that question statement. @ssrivastava990 bhai aapne sayad post kiya tha ki TCS waalon ke pass naya algorithm hai prime find krne ka.

Dua krna ki na ho , and same issue occurs then they give extra time too , so try questions when there is low traffic like in night .

Ha bro diya to hai upar thread ka link , Sqrt(N) gives TLE in c++ , while O(N) passes in C ā€¦ and most intresting thing is 1<= N < = 1015 :rofl:

Link for supercomputer approach

Prime in O(1). Alag e swag h inkašŸ˜Ž

1 Like