Download results
Showing 0-0 of 0 results
Items per page:
10
25
50
100
#
Exercise Title
Features
Description
Platform
Keywords
1
Given a two-dimensional array of integers, return the average of the four corner elements.
Code Completion
Given a two-dimensional array of integers, return the average of the four corner elements.
CodeCheck
Two-Dimensional Arrays
,
No Loops
2
Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even.
Code Completion
Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or...
CodeCheck
Two-Dimensional Arrays
,
No Loops
3
Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even.
Code Completion
Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border...
CodeCheck
Two-Dimensional Arrays
,
No Loops
4
Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction.
Code Completion
Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements...
CodeCheck
Two-Dimensional Arrays
,
No Loops
5
Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist.
Code Completion
Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor...
CodeCheck
Two-Dimensional Arrays
,
No Loops
6
Repeat with NW NE SW SE.
Code Completion
Repeat with NW NE SW SE.
CodeCheck
Two-Dimensional Arrays
,
No Loops
7
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself).
Code Completion
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element...
CodeCheck
Two-Dimensional Arrays
,
No Loops
8
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
Two-Dimensional Arrays
,
No Loops
9
Given a list of integers of length ≥ 4, return the average of the first two and last two elements.
Code Completion
Given a list of integers of length ≥ 4, return the average of the first two and last two elements.
CodeCheck
Lists - Simple Exercises
,
No loops
10
Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even).
Code Completion
Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or...
CodeCheck
Lists - Simple Exercises
,
No loops
11
Given a list of integers, swap the first and last elements.
Code Completion
Given a list of integers, swap the first and last elements.
CodeCheck
Lists - Simple Exercises
,
No loops
12
Given a list of integers, swap the first two and the last two elements.
Code Completion
Given a list of integers, swap the first two and the last two elements.
CodeCheck
Lists - Simple Exercises
,
No loops
13
Given a string, return the string with the first and last characters swapped.
Code Completion
Given a string, return the string with the first and last characters swapped.
CodeCheck
Strings
,
No Loops
14
Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length.
Code Completion
Given a string, return the string with the middle two characters removed if it has even length, and the middle...
CodeCheck
Strings
,
No Loops
15
Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length.
Code Completion
Given a string, return the string with the middle two characters swapped if it has even length, and the middle...
CodeCheck
Strings
,
No Loops
16
Given a string, return the string with the first and second half swapped.
Code Completion
Given a string, return the string with the first and second half swapped. If the string has odd length, leave...
CodeCheck
Strings
,
No Loops
17
Given a string, return the string with the first half and the second half doubled.
Code Completion
Given a string, return the string with the first half and the second half doubled. For example, Java becomes JaJavava...
CodeCheck
Strings
,
No Loops
18
Given a string, return the string with the first and last characters swapped.
Code Completion
Given a string, return the string with the first and last characters swapped.
CodeCheck
Strings
,
No Loops
19
Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length.
Code Completion
Given a string, return the string with the middle two characters swapped if it has even length, and the middle...
CodeCheck
Strings
,
No Loops
20
Given a string, return the string with the first and second half swapped.
Code Completion
Given a string, return the string with the first and second half swapped. If the string has odd length, leave...
CodeCheck
Strings
,
No Loops
21
Given a string, return the string with the first half and the second half doubled.
Code Completion
Given a string, return the string with the first half and the second half doubled. For example, Java becomes JaJavava...
CodeCheck
Strings
,
No Loops
22
Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length.
Code Completion
Given a string, return the string with the middle two characters removed if it has even length, and the middle...
CodeCheck
Strings
,
No Loops
23
Given an array of integers of length ≥ 4, return the average of the first two and last two elements.
Code Completion
Given an array of integers of length ≥ 4, return the average of the first two and last two elements.
CodeCheck
Arrays - Simple Exercises
,
No loops
24
Given an array of integers, swap the first and last elements.
Code Completion
Given an array of integers, swap the first and last elements.
CodeCheck
Arrays - Simple Exercises
,
No loops
25
Given an array of integers, swap the first two and the last two elements.
Code Completion
Given an array of integers, swap the first two and the last two elements.
CodeCheck
Arrays - Simple Exercises
,
No loops
26
Given an array of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even).
Code Completion
Given an array of integers of length ≥ 3, return the average of the first, last, and middle element (or...
CodeCheck
Arrays - Simple Exercises
,
No loops
27
Given a two-dimensional array of integers, return the average of the four corner elements.
Code Completion
Given a two-dimensional array of integers, return the average of the four corner elements.
CodeCheck
Two-Dimensional Arrays
,
No Loops
28
Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even.
Code Completion
Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border...
CodeCheck
Two-Dimensional Arrays
,
No Loops
29
Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction.
Code Completion
Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements...
CodeCheck
Two-Dimensional Arrays
,
No Loops
30
Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist.
Code Completion
Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor...
CodeCheck
Two-Dimensional Arrays
,
No Loops
31
Repeat with NW NE SW SE.
Code Completion
Repeat with NW NE SW SE.
CodeCheck
Two-Dimensional Arrays
,
No Loops
32
Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even.
Code Completion
Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or...
CodeCheck
Two-Dimensional Arrays
,
No Loops
33
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
Two-Dimensional Arrays
,
No Loops
34
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself).
Code Completion
Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element...
CodeCheck
Two-Dimensional Arrays
,
No Loops
35
Calcular una potencia
Construye una funcion que calcule la potencia de un numero. La funcion recibe dos enteros como parametros (la base y...
jsParsons
loops
,
while loop
36
Calcular una potencia
Construye una funcion que tome una base y un exponente no negativo como parametros y calcule la base elevada al...
jsParsons
for loop
,
loops
37
Calcular una potencia
Construye un programa que calcule la base elevada al exponente no negativo sin usar multiplicacion.
jsParsons
for loop
,
loops
38
Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list of length 2.
Code Completion
Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list...
CodeCheck
Two-Dimensional Arrays
,
Complex Loops
39
Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array of length 2.
Code Completion
Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array...
CodeCheck
Two-Dimensional Arrays
,
Complex Loops
×
This is a detailed description.