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

How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


What is a instance variable?

0 Answers  


Why arraylist is used in java?

0 Answers  


What does 3 dots mean in java?

0 Answers  


Difference between predicate, supplier and consumer ?

0 Answers  






Which variable is the independent variable?

0 Answers  


How do you ensure that n threads can access n resources without deadlock?

0 Answers  


There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....

5 Answers  


Differentiate between a class and an object.

0 Answers  


Can a hashset contain duplicates java?

0 Answers  


Tell me the latest versions in java related areas?

0 Answers  


explain how many oops concepts available in java with realtime scenarios?

1 Answers   TCS,


Categories