Commit c69c2624 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Fix invalid html.

parent 6f496754
......@@ -16,13 +16,13 @@ numbers instead of cards. If the input sequence is 9, 7, 10, 9, 5, 4,
and 10, then the stacks develop as
{h <pre>}
<[[9]]>
<[[7, 9]]>
<[[7, 9]], [[10]]>
<[[7, 9]], [[9, 10]]>
<[[5, 7, 9]], [[9, 10]]>
<[[4, 5, 7, 9]], [[9, 10]]>
<[[4, 5, 7, 9]], [[9, 10]], [[10]]>
&lt;[[9]]&gt;
&lt;[[7, 9]]&gt;
&lt;[[7, 9]], [[10]]&gt;
&lt;[[7, 9]], [[9, 10]]&gt;
&lt;[[5, 7, 9]], [[9, 10]]&gt;
&lt;[[4, 5, 7, 9]], [[9, 10]]&gt;
&lt;[[4, 5, 7, 9]], [[9, 10]], [[10]]&gt;
{h </pre>}
Verify the claim is that the number of stacks at the end of the game
......
......@@ -46,7 +46,7 @@ public class Relaxed {
public static boolean isRelaxedPrefix(int[] pat, int[] a) {
int shift = 0;
for(int i=0; i<pat.length; i++) {
for(int i=0; i&lt;pat.length; i++) {
if (pat[i]!=a[i-shift])
if (shift==0) shift=1;
else return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment