codeLink : https://ide.codingblocks.com/s/197163
what’s wrong in my code please specify my error and correct my code asap
Beautiful Vertices wrong output
Hi,
There may be some vertices not connecting to any of the edges(Edge not mentioned in input). You code will not consider those vertices.Try to solve this problem.
I can check if a vertex has edges or not by (T noOFVerticesOfParent = element.second.size();//)
by equating number of parent vertices with zero but how will I check if this vertex is a child of some other vertices or not
, what will be condition to check pendant vertices please tell
for now can you incorporate this modification in my code or as I don’t know how much time it will take me to reach a correct answer, meanwhile I will be working on your approach
Coding blocks ide is under maintanance today. please send your code on another ide.
now coding blocks ide is working please incorporate the correction you suggested as I am unable to do, so or shall I send you a pastebin link @Ankit003
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.