b***k 发帖数: 2673 | 1 ☆─────────────────────────────────────☆
age2 (age 2 warrior) 于 (Fri Feb 8 10:44:52 2008) 提到:
With a standard programming language (e.g. Java, C++, etc.), find out a fast
and simple solution to the following problem without using any regular
expression utilities. Given a stream of characters, output an "A" if the
characters "xxx" are found in exactly that sequence. If the characters "xyx
" are found instead, output a "B". Do not re-process characters so as to
output both an “A” and a “B” wh |
|