![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Nov 2005
Posts: 3
Rep Power: 0
![]() |
Hello, I am presented with the following problem and have tried desperately (over 12 hours) to solve it:
I have a string say "011010101" and I want to parse this string based on a table of values: i = 0 m = 011 k = 10 e = 101 I want to construct an algorithm that will go through the string above and parse it assigning each value to their corresponding table value. Looking at it, I know that the string would become "011" , "0" , "10" , "101" which for this example would be "mike" in that order. Since "i" is the first thing I check, my code tries to form "0", "11010101", and nothing else will get extracted. There can be more than one correct parsing and also the table of values includes all the letters (uppercase and lowercase) as well as ' ', '\n', and '\t'. Any help would be greatly appreciated. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|