Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are formal parameters?

1070


What is this infamous null pointer, anyway?

988


Is sizeof a keyword in c?

918


How can I read and write comma-delimited text?

1010


What is a nested loop?

1072


Describe the order of precedence with regards to operators in C.

1002


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1596


Here is a good puzzle: how do you write a program which produces its own source code as output?

1036


What is the difference between single charater constant and string constant?

1031


What does the characters “r” and “w” mean when writing programs that will make use of files?

1422


can we change the default calling convention in c if yes than how.........?

2471


In a header file whether functions are declared or defined?

1078


What Is The Difference Between Null And Void Pointer?

1156


What does the function toupper() do?

1065


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6727