Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pangram exercise #22

Merged
merged 1 commit into from
Aug 24, 2017
Merged

Add pangram exercise #22

merged 1 commit into from
Aug 24, 2017

Conversation

snahor
Copy link
Contributor

@snahor snahor commented Oct 18, 2016

WIP.

@@ -0,0 +1,2 @@
fun isPangram (sentence: string): bool =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here as in the difference of squares pull request—we don't have these failing stubs elsewhere, and I would favor consistency unless you get a discussion going and there's a consensus that this would be desirable in the SML track.

("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog", false),
("\"Five quacking Zephyrs jolt my wax bed.\"", true)
(*"Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.", true*)
(*"Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства.", false*)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's either add a comment clarifying why there are commented out test cases or delete them.

@mcmillhj
Copy link

mcmillhj commented Jul 9, 2017

Do we care about the runtime for the example solution? It is currently O(n^2) but the optimal solution is O(n)

@snahor
Copy link
Contributor Author

snahor commented Jul 10, 2017

@mcmillhj I'm aware it can be solved in linear time. In fact, this was one of the reasons I thought about an examples directory (#32). I still need to think whether or not it will be beneficial.

@snahor snahor dismissed kytrinyx’s stale review August 24, 2017 05:42

The review is no longer valid, we are using failing stubs and test data from problem-specifications

@snahor snahor merged commit 9e5a855 into exercism:master Aug 24, 2017
@snahor snahor deleted the pangram branch August 24, 2017 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants