-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerated samples & exercise descriptions
- Loading branch information
Showing
80 changed files
with
156 additions
and
201 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ng Maps/Examples/src/ImmutableBlendMap.kt → ...ing Maps/Examples/src/ReadOnlyBlendMap.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Manipulating Lists (#3) | ||
|
||
Reimplement the `authorBooksMap()` function from the Data Classes atom, | ||
Reimplement the `authorBooksMap()` function from [Data Classes], | ||
using operations for manipulating collections. `authorBooksMap()` takes a | ||
`List<Book>` as a parameter and builds a `Map` from each `Author` to the | ||
`Book`s they have written. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Functional Programming/Operations on Collections/Exercise 4/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Functional Programming/The Importance of Lambdas/Exercise 3/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Introduction to Objects/Constraining Visibility/Exercise 2/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## Constraining Visibility (#2) | ||
|
||
Continue developing the `Robot` class from the exercises in the previous atoms. | ||
Use `private` on all the properties and the `crossBoundary()` function, and | ||
verify that you can't access the `private` members outside the class. | ||
Use `private` on all the properties and `crossBoundary()`, and verify that you | ||
can't access the private members outside of the class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## Constructors (#2) | ||
|
||
Continue developing the `Robot` class from the exercises in the previous atom. | ||
Convert the properties that store the size of the field and the current | ||
Convert the properties storing the size of the field and the current | ||
coordinates into `Robot` constructor parameters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## Creating Classes (#1) | ||
|
||
Create a class named `SomeClass` with three member functions: `a()` which | ||
displays `42` on the console, `b()` which calls `a()`, and `c()` which calls | ||
`b()` by qualifying it. | ||
displays `42` on the console when you call it, `b()` which calls `a()`, | ||
and `c()` which calls `b()` by qualifying it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
## Lists (#3) | ||
|
||
Write a function that determines whether two `String`s are anagrams. An anagram | ||
Write a function to determine whether two `String`s are anagrams. An anagram | ||
is a word formed by rearranging the letters of a different word, using all the | ||
original letters exactly once. | ||
|
||
<div class="hint"> | ||
|
||
Compare two sorted `Lists` of characters obtained from two `String`s. Convert a | ||
`String` to a `List` by calling `toList()`. If the `Lists` are equal, the words | ||
are anagrams. For example, for the two anagrams "terrain" and "trainer", the | ||
sorted character `List` will be `[a, e, i, n, r, r, t]`. | ||
Compare two sorted `Lists` of characters obtained from two `String`s. | ||
Convert a `String` to a `List` by calling `toList()`. If the `Lists` are equal, | ||
the words are anagrams. For example, for two anagrams "terrain" and "trainer" | ||
the sorted character `List` will be `[a, e, i, n, r, r, t]`. | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Properties (#1) | ||
|
||
Create a class `X` containing three `Int` properties: `a` and `b` are `val`s | ||
Create a class `X` that contains three `Int` properties: `a` and `b` are `val`s | ||
and `c` is a `var`. Initialize `a` to 3, `b` to 42, and `c` to zero. Create an | ||
`add()` member function that sums `a` and `b` and assigns the result to `c`, | ||
then returns `c`. Write a `main()` to test `X`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Object-Oriented Programming/Class Delegation/Exercise 2/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Object-Oriented Programming/Complex Constructors/Exercise 1/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## Complex Constructors (#1) | ||
|
||
Modify `Alien` to use "verbose" syntax: make `name` a constructor parameter | ||
Modify `Alien` to use the "verbose" syntax: make `name` a constructor parameter | ||
rather than a property, add the `val` property `myName` and assign `name` value | ||
to the property `myName` inside the `init` section. |
2 changes: 1 addition & 1 deletion
2
Object-Oriented Programming/Complex Constructors/Exercise 3/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Object-Oriented Programming/Inheritance & Extensions/Exercise 1/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Sealed Classes (#3) | ||
|
||
Modify `SealedSubclasses.kt` so that all subclasses of `Top` are nested | ||
Modify `SealedSubclasses.kt` so that all the subclasses of `Top` are nested | ||
within `Top`. Create a seeded random-number generator by defining `val rand = | ||
Random(17)`. Use this generator to randomly select a subclass of `Top` and | ||
display its `simpleName`. |
2 changes: 1 addition & 1 deletion
2
Object-Oriented Programming/Secondary Constructors/Exercise 3/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## Secondary Constructors (#3) | ||
|
||
Replace all constructors in the `GardenItem` class with a single primary | ||
Replace all the constructors in the `GardenItem` class with a single primary | ||
constructor using default arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.