1. Write a C program to count the number of occurrence
of
a specific word in the given strings.
(for e.g. Find how many times the word “live” comes in the
sentence “Dream as if you’ll live forever, live as if
you’ll die today ”)
Answer Posted / anil
only balaji's ws de ri8 answer... thanx 2 him...
Is This Answer Correct ? | 23 Yes | 15 No |
Post New Answer View All Answers
Explain null pointer.
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
Who is the main contributor in designing the c language after dennis ritchie?
Why do we use int main?
Why is python slower than c?
What type is sizeof?
What is structure of c program?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
how we can make 3d venturing graphics on outer interface
What are integer variable, floating-point variable and character variable?
How are structure passing and returning implemented?
What does a pointer variable always consist of?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Hi can anyone tell what is a start up code?
What is void pointers in c?