Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hashmap and hashset

 
md.rashedul hasan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a input some think like following:

A B C D

E B C F

N B Q G

Possible output: when we find C in the row, we will get following

A B C D

E B C F

Here C is parent node. Using this parent node(C) where i find A then i will get following output

Q B A D

N B A D

Here I will get list of values(parent nodes and child nodes)

So, How I can implement this notion by using Hashmap and Hashset?
 
Henry Wong
author
Marshal
Pie
Posts: 21503
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You posted this topic in the ranch office forum -- the forum used to discuss issues/questions related to the ranch itself.

Let me move this topic to the java in general forum for you.

Henry

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic