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 functions are in conio h?

660


What is meant by int main ()?

718


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

643


Are global variables static in c?

676


What does 4d mean in c?

949






What the different types of arrays in c?

614


Explain 'far' and 'near' pointers in c.

706


Explain what will the preprocessor do for a program?

605


What are the different types of objects used in c?

577


What was noalias and what ever happened to it?

592


What is call by reference in functions?

568


Difference between pass by reference and pass by value?

658


What is scanf () in c?

662


Why do we need a structure?

590


What is a built-in function in C?

797