Senior Software Developer Java J2ee Interview Questions

98,191 senior software developer java j2ee interview questions shared by candidates

Given an array of numbers where every number >= 0. The items need to be connected. If no answer exists return maxInt example 1: arr = [1, 4, 45, 6, 0, 19] target = 51 output -> 3 because sum([4, 45, 6]) > 51 example 2: arr = [1, 10, 5, 2, 7] target = 9 output -> 1 because sum([10]) > 9
avatar

Senior Full Stack Developer

Interviewed at Sayata

4.5
Jul 2, 2023

Given an array of numbers where every number >= 0. The items need to be connected. If no answer exists return maxInt example 1: arr = [1, 4, 45, 6, 0, 19] target = 51 output -> 3 because sum([4, 45, 6]) > 51 example 2: arr = [1, 10, 5, 2, 7] target = 9 output -> 1 because sum([10]) > 9

1. Find missing element in 2 arrays. a={1,2,3,4}, b={1,2,4}. Ans=3 2. Count no of ON bits in a number. a=3 Ans=2 3. Print all permutations of string. s="12". Ans=12,21. - Use dynamic programming 4. Find 2 strings are anagrams, any other method than sorting?
avatar

Senior Software Developer

Interviewed at Parallel Wireless

3.5
Oct 22, 2021

1. Find missing element in 2 arrays. a={1,2,3,4}, b={1,2,4}. Ans=3 2. Count no of ON bits in a number. a=3 Ans=2 3. Print all permutations of string. s="12". Ans=12,21. - Use dynamic programming 4. Find 2 strings are anagrams, any other method than sorting?

Viewing 1141 - 1150 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 98,191 interview questions and reports from Senior software developer java j2ee interviews. Prepare for your interview. Get hired. Love your job.