Can we use all the STL functions in NQT exam after including it? Or does their compiler cause any error?n And i have also heard that students face error while taking the input. please clarify my doubt ?
No switch is not possible you have to attempt it in order to move to next question and if you moved to next question then you can't come back to previous one
is this right approach for question no. 2? #include using namespace std; int main() { int n; int k; cin >> k; cin >> n; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } for (int i = 0; i arr[i]) { max = arr[j]; } } cout
is this right approach for question no. 2? #include using namespace std; int main() { int n; int k; cin >> k; cin >> n; int arr[n]; for (int i = 0; i < n; i++) { cin >> arr[i]; } for (int i = 0; i arr[i]) { max = arr[j]; } } cout
Solutions: (C++, Java & Python)
docs.google.com/document/d/13XTZidmm6HMmNZwGmI1_uZrEJ_u1LO6RxgsqZiElmUw/edit
Sir this is very easy level questions, plz solve some little hard questions as well 🙏
This is the actual question asked in examination we will definitely solve more questions stay tunned
Can we use all the STL functions in NQT exam after including it? Or does their compiler cause any error?n And i have also heard that students face error while taking the input. please clarify my doubt ?
Same doubt
Yes you can use stl collection and collection frame work in java
@@lokeshthecodingguy7747 what about c++ bhaiya?
Sir mai 2025 me tcs nqt dene wala hu
Mai kab se start karu coding preparation ?
sir means tcs free nqt 2025 batch is announced yet?
Question 1:
def sumoften(n,count=10):
total_sum=0
for i in range(1,count+1):
total_sum+=n*i
return total_sum
n=10
result=sumoften(n)
print(result)
Sir is it possible to switch between two question in coding round? Or once i visited any questions then I can't come back to that old question ?
No switch is not possible you have to attempt it in order to move to next question and if you moved to next question then you can't come back to previous one
What is the timing for class ?
is this right approach for question no. 2?
#include
using namespace std;
int main()
{
int n;
int k;
cin >> k;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
for (int i = 0; i arr[i])
{
max = arr[j];
}
}
cout
Yes it is correct but it will now work since it brute force solution you have to optimise it you can check the optimise solution in video
import java.util.*;
class HelloWorld {
public static ArrayList func(int n,int k,int arr[]){
ArrayList list = new ArrayList();
int max=0;
for(int i=0;i
is this right approach for question no. 2?
#include
using namespace std;
int main()
{
int n;
int k;
cin >> k;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
for (int i = 0; i arr[i])
{
max = arr[j];
}
}
cout