Hello.  YOu don't have to implement your own tree, you can just use a set
object.

You don't need splitting.  just a function to get parent folder which is
something like this (in java)

public String getParent( String dir )
{
 return dir.substring( 0, dir.lastIndexOf( '/' ) );
}

in C++ this would be

string getString( string dir )
{
             return dir.substr( 0, dir.find_last_of( '/'));
}
- Lev.


On Sat, May 22, 2010 at 2:33 PM, Abdelrhman Abotaleb <
[email protected]> wrote:

> Is the answer of the first problem needs a general tree !?
> could any one provide me with a suitable splitting c++ code with a
> dilemeter
> thanks a lot
>
>
> --
> Regards,
> Abdelrhman.M. Abotaleb
>
> IEEE 2010 Student Chapter,
> AC Active member
> SPE 2009 Well Services Moderator
> cairo.spe.org
>
>
> Major: Electronics & Communications
> Minor: Computer Engineering
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-code%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to