TCS Java Coding Interview 2 years Experience | Mock Java Coding Interview

preview_player
Показать описание
In this video, we covered TCS Java coding interview. The candidate has 2 years of experience and got 9LPA CTC.

#javainterviewquestions
#javacodinginterviewquestions
#java
#TCSJavaCodingInterview

Products I use:
Рекомендации по теме
Комментарии
Автор

one liner Solution - > def sub_arrays(arr, k): return len([arr[x:y] for x in range(len(arr) + 1) for y in range(x + 1, len(arr) + 1) if sum(arr[x:y]) == k])

shubhamsrivastava
Автор

we can reduce the time complexity to O(n) by using Hashing concept ☺
Thanks for the

vkireetichandan
Автор

Please create videos on DSA in java for Freshers .

mujaffaryadawad
Автор

Please do on Springboot questions too. Thanks in advance. 😊

kantanaik
Автор

But it is a Brute Force approach . Can you please make a video on its optimized solution

GrowwithVivek
Автор

Can you please make a video on restful web services or restful api interview questions with answers

sruthireddy
Автор

bro sum = sum+arr[j]
sum=0
sum=0+arr[0] 0+1 =1 in 1st iterate
sum=1+arr[1] 1+2=3 in 2nd iterate
sum=3+arr[2] 3+3=6 in 3rd iterate
then it will print result only one then why two in 3rd iterate if we add sum is 6 no bro how it will get 3 then ????

Speed-X-
Автор

bruh aint no way this guy used O(n2) solution in an interview.

valo-fun
Автор

Please create dynamic programming in c, c++, java and python any other language please asking in interview

GoogleAccount-phmm
Автор

// Online Java Compiler
// Use this editor to write, compile and run your Java code online

class HelloWorld {
public static void main(String[] args) {
int[] arr={1, 2, 3};
int target=5;
int count=0;
int sum=0;
for(int i=0;i<arr.length;i++){

sum=sum+arr[i];
count++;
if(sum==target){
break;
}
}
System.out.println(count);
}
}

Bhaskarnallani-phnw
Автор

TQ bro..Try to make a video of DSA in java

Nodankumar
Автор

Are you tcs ask like that simple for 2yrs experienced person

rajeshr
welcome to shbcf.ru