Timeline for strstr() implementation
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 18, 2021 at 9:16 | answer | added | mohammed yaqub | timeline score: 1 | |
| Sep 28, 2015 at 14:19 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 10 characters in body; edited title
|
| Sep 28, 2015 at 13:16 | answer | added | Dale Moore | timeline score: 2 | |
| Jun 13, 2014 at 5:08 | answer | added | Jerry Coffin | timeline score: 6 | |
| Jun 12, 2014 at 21:33 | vote | accept | Software Engineer | ||
| Jun 12, 2014 at 14:48 | comment | added | Loki Astari |
Right way? It is a way. What do you mean by "Right Way" there is more than one "Right Way". If you are looking for the optimal way to implement this then you spend time building a state transition table first then you can scan the input in O(n) (or one loop). Unfortunately building the state transition table is non trivial code. Thus this is a perfectly acceptable solution.
|
|
| Jun 12, 2014 at 13:23 | history | tweeted | twitter.com/#!/StackCodeReview/status/477078864783372288 | ||
| S Jun 12, 2014 at 12:43 | history | suggested | deed02392 | CC BY-SA 3.0 |
Tidy up C code
|
| Jun 12, 2014 at 12:21 | review | Suggested edits | |||
| S Jun 12, 2014 at 12:43 | |||||
| Jun 12, 2014 at 11:08 | history | edited | 200_success |
edited tags
|
|
| Jun 12, 2014 at 7:53 | answer | added | 200_success | timeline score: 19 | |
| Jun 12, 2014 at 7:28 | history | edited | Jamal | CC BY-SA 3.0 |
added 7 characters in body; edited title
|
| Jun 12, 2014 at 7:19 | history | edited | 200_success |
edited tags
|
|
| Jun 12, 2014 at 6:44 | comment | added | Jamal | Are you trying to implement this in C++ specifically? This looks more like C. | |
| Jun 12, 2014 at 6:40 | history | asked | Software Engineer | CC BY-SA 3.0 |