Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
c69c2624
Commit
c69c2624
authored
7 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Fix invalid html.
parent
6f496754
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/patience.mlw
+7
-7
7 additions, 7 deletions
examples/patience.mlw
examples/verifythis_2015_relaxed_prefix.mlw
+1
-1
1 addition, 1 deletion
examples/verifythis_2015_relaxed_prefix.mlw
with
8 additions
and
8 deletions
examples/patience.mlw
+
7
−
7
View file @
c69c2624
...
@@ -16,13 +16,13 @@ numbers instead of cards. If the input sequence is 9, 7, 10, 9, 5, 4,
...
@@ -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
and 10, then the stacks develop as
{h <pre>}
{h <pre>}
<
[[9]]
>
<
[[9]]
>
<
[[7, 9]]
>
<
[[7, 9]]
>
<
[[7, 9]], [[10]]
>
<
[[7, 9]], [[10]]
>
<
[[7, 9]], [[9, 10]]
>
<
[[7, 9]], [[9, 10]]
>
<
[[5, 7, 9]], [[9, 10]]
>
<
[[5, 7, 9]], [[9, 10]]
>
<
[[4, 5, 7, 9]], [[9, 10]]
>
<
[[4, 5, 7, 9]], [[9, 10]]
>
<
[[4, 5, 7, 9]], [[9, 10]], [[10]]
>
<
[[4, 5, 7, 9]], [[9, 10]], [[10]]
>
{h </pre>}
{h </pre>}
Verify the claim is that the number of stacks at the end of the game
Verify the claim is that the number of stacks at the end of the game
...
...
This diff is collapsed.
Click to expand it.
examples/verifythis_2015_relaxed_prefix.mlw
+
1
−
1
View file @
c69c2624
...
@@ -46,7 +46,7 @@ public class Relaxed {
...
@@ -46,7 +46,7 @@ public class Relaxed {
public static boolean isRelaxedPrefix(int[] pat, int[] a) {
public static boolean isRelaxedPrefix(int[] pat, int[] a) {
int shift = 0;
int shift = 0;
for(int i=0; i
<
pat.length; i++) {
for(int i=0; i
<
pat.length; i++) {
if (pat[i]!=a[i-shift])
if (pat[i]!=a[i-shift])
if (shift==0) shift=1;
if (shift==0) shift=1;
else return false;
else return false;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment