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
List some applications of c programming language?
What are the various types of control structures in programming?
What is a dynamic array in c?
What is sizeof array in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
How do I convert a string to all upper or lower case?
Explain what is a stream?
What are preprocessor directives in c?
What are 3 types of structures?
write a progrmm in c language take user interface generate table using for loop?
What is ponter?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Explain the bubble sort algorithm.
What is a built-in function in C?