Suppose you have below graph, it is bidirectional graph.
So you can create an array to depict relationship of nodes in graph, let say array is “a”, with values below: 91 more words
An Armstrong number is a special number that satisfies the following property :
Sum of cube of digits = The number itself ..
for ex : 153 is an Armstrong number as , 1 ^ 3 + 5 ^ 3 + 3 ^ 3 = 153… 90 more words