Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Tried converting to java but LinkedListNode implementation in c# is something i am having trouble with and its related functionality.

Can someone help me with c++/java version of about code. (it seems to use Havel-Hakimi theorem and I am not really familiar with c# to understand the logic behind it but i was able to run above code with some googling)

Would really like help with conversion as java/c++(familiar with) will give me better understanding about the method/algorithm used in above code


What I have tried:

Tried converting to java but LinkedListNode implementation in c# is something i am having trouble with and its related functionality.

Can someone help me with c++/java version of about code. (it seems to use Havel-Hakimi theorem and I am not really familiar with c# to understand the logic behind it but i was able to run above code with some googling)

Would really like help with conversion as java/c++(familiar with) will give me better understanding about the method/algorithm used in above code
Posted
Updated 2-Jun-19 1:25am
v3
Comments
Richard Deeming 5-Jun-19 20:48pm    
Removing the content of your question after it has been answered is extremely rude.

For translation in java you must create for each class a file with the name of the class. For C++ you must create a header file with declarations and use the scope syntax.

Shouldnt be to hard to rewrite it. The main functions and memory allocations are a bit different, you should google for some tutorials like to Learn C++.
 
Share this answer
 
You can try an online translator like this one: CodeTranslator: Code Translation From VB.NET <-> C# <-> TypeScript <-> Java[^]
But these will only work for simple programs ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900