This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| #include<string> | |
| #include <conio.h> | |
| #include <windows.h> | |
| #include<fstream> | |
| using namespace std; | |
| class node{ | |
| private: | |
| string data; | |
| node *next; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| #pragma warning(disable : 4996) | |
| #include<iomanip> | |
| #include<Windows.h> | |
| #include<cstring> | |
| #include<string> | |
| #include<ctime> | |
| #include<fstream>; | |
| #include<conio.h> | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| }; | |
| node *tail; | |
| node *head; | |
| void Insert(int x){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| }; | |
| node *head; | |
| void Insert(int x){ | |
| node *temp = new node; | |
| temp->data = x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| int x; | |
| struct node{ | |
| int data; | |
| node *next; | |
| node *pev; | |
| }; | |
| node *head; | |
| void Insert(int x){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| node *prev; | |
| }; | |
| node *head; | |
| node *GetNode(int x){ | |
| node *temp = new node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| node *pve; | |
| }; | |
| node *head; | |
| node *GetNewNode(int x){ | |
| node *newnode = new node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| }; | |
| node *head; | |
| node *tail; | |
| void Insert(int x){ | |
| node *temp = new node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| using namespace std; | |
| struct node{ | |
| int data; | |
| node *next; | |
| node *prev; | |
| }; | |
| node *head; | |
| node *tail; | |
| void Insert(int x){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void JosuphProb(int jump){ | |
| node *temp = head; | |
| node *temp1 = head; | |
| while (temp != head) | |
| for (int i = 0; i < jump - 2; i++){ | |
| temp = temp->next; | |
| } | |
| for (int i = 0; i < jump - 1; i++){ | |
| temp1 = temp1->next; | |
| } |
OlderNewer