Skip to content

Instantly share code, notes, and snippets.

View Zerk123's full-sized avatar

Zerk Shaban Zerk123

  • Software Engineer @ Arrivy Inc.
  • Lahore, Pakistan
View GitHub Profile
#include<iostream>
#include<string>
#include <conio.h>
#include <windows.h>
#include<fstream>
using namespace std;
class node{
private:
string data;
node *next;
#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;
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;
}