Given an array of length N containing integers between 1
and N, determine if it contains any duplicates.

Answer Posted / ramkumar

What if the array is

1) 1,2,3,4,5
2) 1,2,2,5,5

both sums to 15!!

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the sizeof () operator?

609


Explain modulus operator.

580


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

725


What is the difference between a free-standing and a hosted environment?

631


What are loops in c?

533






Why is it that not all header files are declared in every C program?

662


What is difference between structure and union?

586


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1426


What is the process to create increment and decrement stamen in c?

575


what is a function method?give example?

1904


Where define directive used?

591


explain what is a newline escape sequence?

669


Explain data types & how many data types supported by c?

568


What is variable in c example?

583


Tell me can the size of an array be declared at runtime?

583