pritaeas
Posting Prodigy
9,309 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
pritaeas
Posting Prodigy
9,309 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
Bear in mind that URLs can be both absolute and relative. E.g.
http://example.com/my/page.html
/my/page.html
my/page.html
You may also need to account for mailto:, tel: and other link types too.
blocblue
Practically a Posting Shark
837 posts since Jan 2008
Reputation Points: 272
Solved Threads: 161
Skill Endorsements: 12
Whether you store them in an array or in the database, there is no issue between BFS or DFS, because those two apply to binary trees or graphs.
pritaeas
Posting Prodigy
9,309 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
pritaeas
Posting Prodigy
9,309 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
For what reason do you keep referring to BFS/DFS ? It is not applicable in your current situation.
pritaeas
Posting Prodigy
9,309 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
Question Answered as of 9 Months Ago by
pritaeas
and
blocblue