Download results
Showing 0-0 of 0 results
Items per page:
10
25
50
100
#
Exercise Title
Features
Description
Platform
Keywords
1
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
2
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
3
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
4
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
5
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
6
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
7
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
8
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
9
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
10
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
11
Repeat with NW NE SW SE.
Code Completion
Repeat with NW NE SW SE.
CodeCheck
Two-Dimensional Arrays
,
No Loops
12
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
13
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
14
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
15
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
16
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
17
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
18
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
19
Calcular una potencia
Construye un programa que calcule la base elevada al exponente no negativo sin usar multiplicacion.
jsParsons
for loop
,
loops
20
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
21
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
×
This is a detailed description.