Capgemini Java Coding Interview | Java Questions and Answers

preview_player
Показать описание
In this video, we covered Capgemini Coding Interview. The candidate has 1.8 years of experience and he got placed in the company.

#javainterviewquestions
#java
Рекомендации по теме
Комментарии
Автор

public static void main(String[] args) {
String s1 = "use cloudtech for learning java";
String w1 = "cloudtech";
String w2 = "java";
String[] arr1= s1.split(" ");

int len = arr1.length;
int source=0;
int destinatio=0;
for(int i=0;i<len;i++) {
if(arr1[i].equals(w1)) {
source=i;
}
if(arr1[i].equals(w2)) {
destinatio=i;
}
}
if(destinatio>source)

else

}

krishnachaitanya
Автор

Please provide these kind of videos.. really useful for us. we will support you for sure..

dhivaanbu
Автор

Are you doing these videos by refering someone's or your neighbour interview or you're making your self as own, specifically that salary package and MNC names?

mohanlal
Автор

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

sruthireddy
Автор

1) I split the sentence by space and got array
2) using stream I changed that array into list and find out the index and then subtracted

learntoday
Автор

Bro Video not coming kindly share videos please.

tapasyt
Автор

Sorry to say this, it's not an efficient solution.

1. It's not defined word1 will come first or word2. --- if word2 come first it will fail. Ex. Java was teaching by cloudtech. W1 -- cloudtech and w2 -- java.
2. Not defined, occurrence of these words is 1. If the occurrence is high, it will fail. Ex: cloudtech cloudtech teaching java. W1-- cloudtech & w2--java

nanisai
Автор

O(n^2) not really preferable. Can do it O(n)

chanukyareddy
Автор

i wants to know all these big program how u solve in short time i think u have already solved this and its scripted right??

nextiswhat
Автор

this interview for how much years of experience bro?

harisundar
join shbcf.ru