Capgemini Java Coding Interview | Watch this if you want offer

preview_player
Показать описание
In this video, we covered Capgemini Coding Interview Questions. The candidate got selected in the company with the offer of 10LPA.

We solved two problems.
1.) Finding the missing number from the array
2.) Convert first half of the String in lower case and second half in upper case
Рекомендации по теме
Комментарии
Автор

Great ..now we are aware of character class and its methods, toUpperCase(), toLowerCase()

ashishsrivastav
Автор

Really good questions. Thank you!! Please, make videos on questions related to Collection also.

roshanpatro
Автор

what if we remove two numbers from an array and then try to find missing number. How can we do that?

SHIVAAY
Автор

One more way to do this, will just go on checking with the reference of index value I will check with arr[0] == I+1 if not the missing element is the I+1

TheCorporateCricket-yj
Автор

i was asked missing and repeating number program for 3.5 lpa package

sanketpatil
Автор

public static void main(String[] args) {
int [] arr = new int []{1, 2, 3, 5, 6, 7, 8, 9} ;
int n= arr. length+1;
int sum = n* (n+1) /2;
for (int i : arr ){
sum -= i;
}
System.out .printIn("Missing number is "+sum);

Musical_dropz
Автор

please don't do DS and Algo, we can get this easily.
Do class related videos like Employee, list of employees, increase their salary, group by etc

somublackstar
Автор

If they really ask these questions I'm gonna go into interviews right now

radhikagadve
Автор

String s = "India is My Country India is My Country";

String s1 = s.substring(0, s.length()/2);
String s2 = s.substring(s.length()/2);

String result = "\0";

result = s1.toLowerCase();

result += s2.toUpperCase();

System.out.println(result);

java_minds
Автор

Here is the simplest way
public class StringQuestion {
public static void main(String[] args) {
String str="Capgemini Coding Interview Questions Capgemini Coding Interview Questions";
String upper=str.substring(str.length()/2, str.length()).toUpperCase();
String lower=str.substring(0, str.length()/2).toLowerCase();
System.out.println("The final output is "+lower +" " +upper);
}
}

shivarajhiremath
Автор

Don't you think for missing number code the formula will result in overflow if n is very very large

pcateja
Автор

if only one no is missing then only answer will work.what if 2 no are missing .

OS-btil
Автор

String lowerUpperString = new StringBuilder().append(str.substring(0,

PREMKUMAR
Автор

So you don't need any actual DSA problem solving skills for Capgemini??
Is it that easy or am i missing something

Aman_Gupta
Автор

I must have the worst luck, for a 5LAP job, they asked me codewars morse code advance, as a fresher. 🤣🤣

gauravkumar
Автор

This is not an actual capgemini interview....

swapnilbagul
Автор

If I provide the number in put how u find the last element in this case 10

ashoksaho
Автор

He could have taken an variable with initial value of 1 and compare it with every element. If equal, increase value of that variable. Where the variable and element value differ, break the loop and cur value of that variable is the output.

lonestoryteller
Автор

capgi bht chindi company hai package ke mamle me

alim