473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Program for circular linked list

I doing a program with circular linked list but its not working.In the program there are 6 suitors and there are elimination process proceeds as follows:

123456 Its inital list start counting from 1
12456 then suitor 3 eliminated and continue counting from 4
1245 then 6 eliminated and countinue counting from 1
125 then 4 is deleted and countinue counting from 5
15 then 2 is deleted and countinue counting from 5
1 then 5 is eliminated and 1 is winner.

This program gives errors and i am confused.Please help me with this program
May 12 '10 #1
2 2954
Dheeraj Joshi
1,123 Expert 1GB
Have you written any code for this?

Regards
Dheeraj Joshi
May 12 '10 #2
jkmyoung
2,057 Expert 2GB
Please post your code in [ code ] [ / code] tags, (use the # button), and write down the error here.
We don't have magical powers to see what's on your computer.
May 12 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: surender | last post by:
Hi, Let us think that we have 100 nodes in the single linked list. I have only 50th node address and i don't have the first node address but i want to print the 49th node data. So how can we print...
1
by: Booser | last post by:
// Merge sort using circular linked list // By Jason Hall <booser108@yahoo.com> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> //#define debug
3
by: picknicker187 | last post by:
hi, the program below is supposed to read data out of a txt file into an array and the second part of the data to a linked list. 8 is the number of words, the 10 terms below represent...
2
by: prem425 | last post by:
Write a C++ program to implement the linked list structure representation of a polynomial of several variables. You would prompt for input: two such polynomials – with same number of variables....
4
by: Rhino | last post by:
I have to make little program with linked list and structs. but I'm a little stuck atm. de task is pritty easy, I need to make a tree and in every node there is a question depending on the anwer u...
0
by: brankec | last post by:
I'm trying to write C program that reads data from dbf fajl. This is my first program with linked list. When I delete line1 and line2 program works, but then I dont have linked list. And when I use...
2
by: morris11 | last post by:
I am trying to create a circular list that includes insert() , find() and remove() methodes. also a step() method that moves current along to the next link. I still need to display the list by...
2
by: sathishc58 | last post by:
Hi Can anyone explain me the difference between circular linked list and looped linked list? 1) In Circular linked list Next part of last node will be pointing to the first nodes starting...
12
by: kalyan | last post by:
Hi, I am using Linux + SysV Shared memory (sorry, but my question is all about offset + pointers and not about linux/IPC) and hence use offset's instead on pointers to store the linked list in...
3
by: praveenaj | last post by:
I was given to write a C program using Linked list to enter student marks, but i can't figure out how this node insertion works: how nodes are linked with each other??? A Computer Training...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.