Given an array of size N in which every number is between 1
and N, determine if there are any duplicates in it. You are
allowed to destroy the array if you like.
Answer
Is This Answer Correct ? | 22 Yes | 10 No |
Given an array of characters which form a sentence of words,
give an efficient algorithm to reverse the order of the words
(not characters) in it.
Answer
Is This Answer Correct ? | 2 Yes | 0 No |
Give a very good method to count the number of ones in a 32
bit number.
(caution: looping through testing each bit is not a solution)
Answer
Is This Answer Correct ? | 41 Yes | 26 No |
write a program to Insert in a sorted list
Answer
Is This Answer Correct ? | 10 Yes | 5 No |
Write a routine that prints out a 2-D array in spiral order
Answer
Is This Answer Correct ? | 1 Yes | 13 No |
Question { 19570 }
Print an integer using only putchar. Try doing it without
using extra storage.
Answer
Is This Answer Correct ? | 22 Yes | 5 No |
Write out a function that prints out all the permutations of
a string.
For example, abc would give you abc, acb, bac, bca, cab,
cba. You can assume that all the characters will be unique.
Answer
Is This Answer Correct ? | 5 Yes | 5 No |
Question { 36181 }
Program to find the largest sum of contiguous integers in
the array. O(n)
Answer
Is This Answer Correct ? | 11 Yes | 13 No |
Question { 36181 }
Program to find the largest sum of contiguous integers in
the array. O(n)
Answer
Is This Answer Correct ? | 11 Yes | 9 No |
Find your day from your DOB?
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
Find your day from your DOB?
Answer
Is This Answer Correct ? | 2 Yes | 0 No |
String reverse with time complexity of n/2 with out using
temporary variable.
Answer
Is This Answer Correct ? | 2 Yes | 11 No |
write the function. if all the character in string B appear in
string A, return true, otherwise return false.
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
Question { 10343 }
How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer
Is This Answer Correct ? | 11 Yes | 7 No |