26th April Shift 2- Coding Questions & Solutions | INPUT FORMAT | TCS NQT 2024 |

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 50

  • @PrimeCoding19
    @PrimeCoding19  9 місяців тому

    Hello Everyone, I hope you understood the concept. If you have any doubts please write in into comments. All the best.

    • @SobithaRani
      @SobithaRani 5 місяців тому

      Where can I find the codes which u explained in this video?

    • @SobithaRani
      @SobithaRani 5 місяців тому

      @PrimeCoding19
      Where can I find the codes which u explained in this video?

  • @allinonesomespecial4
    @allinonesomespecial4 5 місяців тому +2

    Hello Brother, I appreciate your efforts🎉. But one suggestion from my side -> while writing Question on black screen use bright colors like (yellow, white etc. ) so that it is clearly visible 😊.

    • @PrimeCoding19
      @PrimeCoding19  5 місяців тому

      Of course, please check out the other videos I've improved.

  • @sivamaheshmallisetty2849
    @sivamaheshmallisetty2849 8 місяців тому +1

    lots of love towards ur effort.....

    • @PrimeCoding19
      @PrimeCoding19  8 місяців тому +1

      Much appreciated. It really takes a lot of hard work. All the best for your exam.

  • @neerajkashyap268
    @neerajkashyap268 Місяць тому

    hiiiiiiiii great video i loved it
    one doubt we can code in any language for the coding session ? and we need to have intermediate knowledge of c,c++,python, kotlin for therory part am i correct ?

  • @U2011-n7w
    @U2011-n7w 9 місяців тому +1

    nice work broo

    • @PrimeCoding19
      @PrimeCoding19  8 місяців тому

      Thanks Utkarsh.. I have uploaded all shift solutions + one shot for Array and String questions must watch video, questions are coming from 1 shot, have a quick look at shift solutions of 30th April.

  • @adityapratapsingh5402
    @adityapratapsingh5402 9 місяців тому

    Great knowledge 🎓

  • @learnwithchirag
    @learnwithchirag 9 місяців тому

    Nice Explanation !

    • @PrimeCoding19
      @PrimeCoding19  9 місяців тому +1

      Thanks chirag. Keep supporting.

  • @padmanabhojha8155
    @padmanabhojha8155 9 місяців тому

    Best explanation 🤌🏻 love it

  • @AkashSharma-ij4sn
    @AkashSharma-ij4sn 9 місяців тому

    Great share

  • @mashapoguajay3322
    @mashapoguajay3322 6 місяців тому

    sir for tcs nqt we just need to fill the function a sir or else we have to write the entire code

    • @PrimeCoding19
      @PrimeCoding19  6 місяців тому +1

      You need to write entire program.

  • @Doramon-l7g
    @Doramon-l7g 3 місяці тому

    Bro the first question can still be optimized to O(1) rather than O(m-n)

  • @SobithaRani
    @SobithaRani 5 місяців тому

    Where can I find the codes which u explained in this video?

    • @PrimeCoding19
      @PrimeCoding19  5 місяців тому

      check description, GITHUB link is provided

  • @shubhbindal1235
    @shubhbindal1235 8 місяців тому

    Best channel i have found for preparation of service based companies!! Hats off brother for your hard work.

    • @PrimeCoding19
      @PrimeCoding19  8 місяців тому +1

      Thanks Shubh, it means a lot.
      Do watch video tutorials of all shifts, this will help you to succeed in the any coding exam.
      share with your friends.

  • @TalachutlaSatyavathi
    @TalachutlaSatyavathi 3 місяці тому

    n,m=map(int,input().split())
    s=0
    for i in range(n,m+1):
    s+=i**3
    print(s)

  • @nidarshanar9098
    @nidarshanar9098 8 місяців тому

    Sir i solved only the first coding question, can i get digital?

    • @PrimeCoding19
      @PrimeCoding19  8 місяців тому +1

      Hello, No for digital u need to solve both questions.

    • @jayanthkumaryadavalli5828
      @jayanthkumaryadavalli5828 6 місяців тому

      u got anythingg??

    • @assk1728
      @assk1728 4 місяці тому

      @@PrimeCoding19 for digital , it is enough to solve one coding question. Right sir?

    • @assk1728
      @assk1728 4 місяці тому

      hello!! were the questions asked from dsa? or non DSA? plz reply

  • @xzlog6747
    @xzlog6747 8 місяців тому

    can u tell how to take input in c++/java??

    • @PrimeCoding19
      @PrimeCoding19  8 місяців тому

      Hello,
      Watch my video how to take input in ycs nqt exam. You can find it on my channel.
      Thank you

  • @rajasubramanian.v791
    @rajasubramanian.v791 9 місяців тому

    How to get array as input in c/c++ without knowing the array size.
    Is the compiler user friendly on c/c++.

    • @PrimeCoding19
      @PrimeCoding19  9 місяців тому

      Yes, it is user friendly.
      This will be given in the question if in the question we need to create an array then the size will be given. That's why I always recommend having another language.

    • @PrimeCoding19
      @PrimeCoding19  9 місяців тому +2

      vector arr;
      int num;
      while (cin >> num) {
      arr.push_back(num);
      if (cin.get() == '
      ') break;
      }
      you can try this, it will work.

    • @rajasubramanian.v791
      @rajasubramanian.v791 9 місяців тому

      @@PrimeCoding19 thanks

  • @RajSingh-zx9pu
    @RajSingh-zx9pu 5 місяців тому

    where is link of c++ code
    brother

  • @varunsen2802
    @varunsen2802 9 місяців тому

    Bro, we were supposed to take float as input because of decimals in second value. But I kept on getting input mismatch error.

    • @PrimeCoding19
      @PrimeCoding19  9 місяців тому

      In case of float just a small modification use float instead of int, your work is done.
      Yes, if you want to take float then it is possible that the value of the array can also be filled with float.

  • @AJayasri-p3x
    @AJayasri-p3x Місяць тому

    I want talk with you.
    What is the process.

  • @rem8572
    @rem8572 25 днів тому

    n=int(input())
    maxcost=0
    itemcost=0
    maxitem=""
    totalsell=0
    avg=0
    for i in range(n):
    details=input().split()
    item=details[0]
    quantity=int(details[1])
    price=int(details[2])
    itemcost=quantity*price
    totalsell+=itemcost
    if itemcost>maxcost:
    maxcost=itemcost
    maxitem=item
    avg=totalsell/n
    print(f"{item}
    {totalsell}
    {avg:.2f}")

  • @AtanuChakraborty-v5g
    @AtanuChakraborty-v5g 3 місяці тому

    please improve your audio

  • @Czjajava
    @Czjajava 7 місяців тому +3

    Isse Aur bekar background color le le te..

    • @PrimeCoding19
      @PrimeCoding19  7 місяців тому +1

      Sorry about that, but as time passed.. you can see the change in quality!

    • @Czjajava
      @Czjajava 7 місяців тому

      @@PrimeCoding19 ok bro no problem

  • @ezcoding69
    @ezcoding69 6 місяців тому

    Kitne questions rehte 2 ya 3 ...and digital k liye kitna solve krna padta hai and prime k liye kitna ? Anyone ?

    • @PrimeCoding19
      @PrimeCoding19  6 місяців тому

      There will be 2 questions in tcs nqt exam.
      Solve both problems for prime role.
      If your aptitude preparation is not good then solve at least one and a half of another problem.
      Or solve 1 question and perform average in aptitude then you are eligible for digital.

    • @ezcoding69
      @ezcoding69 6 місяців тому

      @@PrimeCoding19
      what if i solve 2 coding question with all tc passes and 0 aptitude ?
      and if someone got interview call for prime and he was rejected then is he has to start again from scratch(means from giving exam) ?