SEOClerks

Domino sorting algorithm in C++

Domino sorting algorithm in C++

I need a algorithm in c++ for sorting domino stones in circles.
The domino value are inside a struct of two integers.

e.g.

input
1 10
12 14
10 8
12 8
1 14

output
1 10
10 8
8 12
12 14
14 1

----
multiple circles possible

input
1 2
4 12
2 9
7 12
4 7
3 9
3 1


output
c1
1 2
2 9
9 3
3 1

4 12
12 7
7 4


Requirements

I need the algorithm in c++ without the use of library functions.


Skills Required

Cpp C Games Desktop Apps

Bids

i accept for your requisition. i all time best. so i need this job.
i love this job.
my sql
c++
java
html

hello g4m3r,
i can give you an algorithm for this, but i am not clear about how this should be sorted. can you please explain more.
will provide a algorithm in 24 hrs once you explain how it is sorted.
thanks.

i will design algorithm for you which will be fully documented with comments to let you understand it. i have solved this kind of algorithmic problems online.

Created 2 months ago in Programming

Other jobs by g4m3r