Professional Documents
Culture Documents
Plagiarism Scan Report: Content Checked For Plagiarism
Plagiarism Scan Report: Content Checked For Plagiarism
Summary
Report Genrated Date 29 Mar, 2017
Plagiarism Status 100% Unique
Total Words 226
Total Characters 1312
Any Ignore Url Used
m
Content Checked For Plagiarism:
co
#include
#include
s.
#include
#define bool int
#define true 1 ol
#define false 0
struct Node
To
{
int data;
struct Node *next, *prev;
};
eo
first = first->next;
second = second->prev;
}
else
{
if ((first->data + second->data) < x)
first = first->next;
else
second = second->prev;
}
}
if (found == false)
printf("No pair found");
}
m
struct Node *temp;
temp = (struct Node*)malloc(sizeof(struct Node));
co
temp->data = data;
temp->next = temp->prev = NULL;
if (!(*head))
(*head) = temp;
s.
else
{ ol
temp->next = *head;
(*head)->prev = temp;
To
(*head) = temp;
}
}
eo
int main()
{
struct Node *head = NULL;
lS
int i , x , num;
printf("Give the value of x :");
scanf("%d" , &x);
al
pairSum(head, x);
return 0;
}