Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #11460

My Custom Longest Common Substring which searches for a pattern fails on certain strings

From Alec Taylor <alec.taylor6@gmail.com>
Newsgroups comp.lang.c++
Subject My Custom Longest Common Substring which searches for a pattern fails on certain strings
Date 2011-11-14 09:38 -0800
Organization http://groups.google.com
Message-ID <10442033.560.1321292318166.JavaMail.geo-discussion-forums@prlm15> (permalink)

Show all headers | View raw


Good morning,

Unfortunately my Custom Longest Common Substring function which includes a number failed when a word appears before the number.

This one works: http://ideone.com/SSoTe

This one fails: http://ideone.com/9xkB5

The second should have the same output as the first.

Can you point out the bug in my code?

Thanks for all suggestions,

Alec Taylor 

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

My Custom Longest Common Substring which searches for a pattern fails on certain strings Alec Taylor <alec.taylor6@gmail.com> - 2011-11-14 09:38 -0800
  Re: My Custom Longest Common Substring which searches for a pattern fails on certain strings Leigh Johnston <leigh@i42.co.uk> - 2011-11-14 17:48 +0000
    Re: My Custom Longest Common Substring which searches for a pattern fails on certain strings Alec Taylor <alec.taylor6@gmail.com> - 2011-11-14 10:07 -0800

csiph-web