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 difference between preparedstatement and statement in java?

0 Answers  


What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

0 Answers   Akamai Technologies,


How to initialize an Applet ?

9 Answers   TCS,


Why can't we make jsp as a controller and action servlet in struts?

8 Answers   TCS, Wipro,


Explain public static void main(string args[]) in java.

0 Answers  


What is methodological theory?

0 Answers  


Explain about main() method in java ?

0 Answers  


Can we split string with in java?

0 Answers  


Write a java program that prints all the values given at command-line.

0 Answers  


What is final?

0 Answers  


Does list allow duplicates in java?

0 Answers  


Categories