Showing 0–0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Given an input string, print the string with the first and last letter removed if they were equal, or the original string if they were not. Code Completion Given an input string, print the string with the first and last letter removed if they were equal, or the... CodeCheck Branches, Branches Without Functions
2 Given an actual time and an alarm clock time, both in “military” format (such as 0730 for 7:30am), print how many more minutes before the alarm rings. Code Completion Given an actual time and an alarm clock time, both in “military” format (such as 0730 for 7:30am), print how... CodeCheck Branches, Branches Without Functions
3 Repeat the preceding exercise for U. Code Completion Repeat the preceding exercise for U.S. time (e.g. 7:30am). CodeCheck Branches, Branches Without Functions
4 Given a point with integer coordinates (x, y) and a compass direction N, E, S, W, print the neigboring lattice point. Code Completion Given a point with integer coordinates (x, y) and a compass direction N, E, S, W, print the neigboring lattice... CodeCheck Branches, Branches Without Functions
5 Repeat with compass directions NW, NE, SW, SE. Code Completion Repeat with compass directions NW, NE, SW, SE. CodeCheck Branches, Branches Without Functions
6 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Branches, Branches Without Functions
7 On a chessboard, fields are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, fields are marked with a letter between a and h for the column and a number between... CodeCheck Branches, Branches Without Functions
8 Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth quadrant plane, or on the x-axis, or on the y-axis, or the origin. Code Completion Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth... CodeCheck Branches, Branches Without Functions
9 Given three numbers x, y, z, determine if one of them is the sum of the two others, and then print out the equation. Code Completion Given three numbers x, y, z, determine if one of them is the sum of the two others, and then... CodeCheck Branches, Branches Without Functions
10 Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all three are the same. Code Completion Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all... CodeCheck Branches, Branches Without Functions
11 Given two integers x and y, print their sum, but if it is more than 100 or less than 0, print "out of range". Code Completion Given two integers x and y, print their sum, but if it is more than 100 or less than 0,... CodeCheck Branches, Branches Without Functions
12 Given three integers x, y, z, print the sum of the odd integers. Code Completion Given three integers x, y, z, print the sum of the odd integers. CodeCheck Branches, Branches Without Functions
13 Given three input strings, print all but the shortest one. Code Completion Given three input strings, print all but the shortest one. CodeCheck Branches, Branches Without Functions
14 Given two numbers, return true if they both have the same sign. Code Completion Given two numbers, return true if they both have the same sign. CodeCheck Branches, Branches with Functions
15 Write a function that checks whether two points with coordinates x1, y1 and x2, y2 are in the same quadrant. Code Completion Write a function that checks whether two points with coordinates x1, y1 and x2, y2 are in the same quadrant. CodeCheck Branches, Branches with Functions
16 Given two numbers, return their distance if it less than 10, or 10 otherwise. Code Completion Given two numbers, return their distance if it less than 10, or 10 otherwise. CodeCheck Branches, Branches with Functions
17 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Branches, Branches with Functions
18 Given three numbers x, y, z and a Boolean variable <code>strict</code>, return <code>true</code> if <code>strict</code> is false and x ≤ y ≤ z, or <code>strict</code> is true and x &lt; y &lt; z. Code Completion Given three numbers x, y, z and a Boolean variable strict, return true if strict is false and x ≤... CodeCheck Branches, Branches with Functions
19 Given four numbers a, b, c, d, return true if exactly two of them are the same. Code Completion Given four numbers a, b, c, d, return true if exactly two of them are the same. CodeCheck Branches, Branches with Functions
20 Given three numbers, return true if they are evenly spaced; that is, sorted in ascending or descending order, with the same distance between them. Code Completion Given three numbers, return true if they are evenly spaced; that is, sorted in ascending or descending order, with the... CodeCheck Branches, Branches with Functions
21 Repeat for four numbers. Code Completion Repeat for four numbers. Hint: Use the previous problem. CodeCheck Branches, Branches with Functions
22 Given numbers x, y, and target, return whichever of x and y is closer to the target. Code Completion Given numbers x, y, and target, return whichever of x and y is closer to the target. If they have... CodeCheck Branches, Branches with Functions