Write an algorithm program in java for the following question..

1) S is a set of integers.X is an integer obtained by sum of two digits in S.
Write logic for whether or not the X is from the S.
The time of algorithm should not exceed o(n logn).


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is the type of lambda expression?

0 Answers  


Explain wait() method of object class ?

0 Answers  


Does java support function overloading, pointers, structures, unions or linked lists?

0 Answers  


What technique can be employed to compare two strings?

0 Answers  


What are instance variables?

0 Answers  






What is the most important feature of java? What is an interface?

0 Answers  


how is final different from finally and finalize in java?

0 Answers   DELL,


What is the use of bufferedreader?

0 Answers  


Is 0 a prime number?

0 Answers  


Write a program to check for a prime number in java?

0 Answers   Cyient,


can used Protected Class outside Function.?

0 Answers   HCL,


I want to persist data of objects for later use. What’s the best approach to do so?

0 Answers  


Categories