3. Infosys Interview | Java 8 Coding Interview Question Answers

preview_player
Показать описание
In this video, we solved Java Coding Interview Question which was asked in Infosys Interview. The candidate had 2.5 Years of Experience working as a Java Developer, He solved the problem and got selected with CTC of 7.10 LPA.

#leetcode
#java
#interview
#javaprogramming
#javacoding
#javainterviewquestions
#InfosysInterviewQuestions
Рекомендации по теме
Комментарии
Автор

1st can be solved using hashset and 2 nd can be solved using hashmap

vishalpatil
Автор

Hey for the first problem u can convert list to set, duplicate not allowed in set

kowsalyas
Автор

Hi you are from cloudTech I can remember your voice

nullpointer
Автор

import java.util.*;
public class Main
{
public static void main(String[] args) {
ArrayList<Integer> al = new ArrayList<Integer>();

for(int i=0;i<al.size();i++)
{
for(int j=i+1;j<al.size();j++)
{
if(al.get(i)==al.get(j))
{
al.remove(j);
}
}
}
//al.remove(6);
System.out.println(al);
}
}

UchhihaMadara
visit shbcf.ru