Resuelto


Frequencies of prime gaps
Given two positive integers n and , write a function which computes the frequency of the gap between two consecutive of the pr...

más de 1 año hace

Resuelto


Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...

más de 1 año hace

Resuelto


Compute the antisigma function
The sum of divisors function, or , is the sum of the numbers that divide . The antisigma function is the sum of numbers less tha...

más de 1 año hace

Resuelto


Classify triangles as acute, obtuse, or right
In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtus...

más de 1 año hace

Resuelto


Most Frequent Characters
Given a document file or a character array, identify the 'n' most frequently occurring characters and the number of times each a...

más de 1 año hace

Resuelto


Symmetric Pair
Given an (n, 2) matrix, remove any symmetric pairs from the matrix. Keep the first occurrence. (2, 3) and (3, 2) are considere...

más de 1 año hace

Resuelto


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

más de 1 año hace

Resuelto


Pairs with Given Sum
Given an array of integers and a target sum, return all unique pairs whose sum is equal to the target. The output should be a ma...

más de 1 año hace

Resuelto


Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...

más de 1 año hace

Resuelto


Dominant Matrix - 02
It is a follow-up of the problem 55995. There, you found out whether a matrix is diagonally dominant or not. In this problem, y...

más de 1 año hace

Resuelto


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

más de 1 año hace

Resuelto


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

más de 1 año hace

Resuelto


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

más de 1 año hace

Resuelto


Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...

más de 1 año hace

Resuelto


Maze Solver with Backtracking and Custom Cost Rules
Write a function solve_maze that finds a path from the top-left corner (1,1) to the bottom-right corner (m,n) of a 2D matrix M, ...

más de 1 año hace

Resuelto


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

más de 1 año hace

Resuelto


minecraft movie scramble
the following phrase "la la la lava ch ch ch chicken" will be out of order. make it into the correct order

más de 1 año hace

Resuelto


add num
add two numbers a and b

más de 1 año hace

Resuelto


round pi
round pi

más de 1 año hace

Resuelto


wordle
create a dictionary and a playable game of wordle, figure out the solution.

más de 1 año hace

Resuelto


num10
123456

más de 1 año hace

Resuelto


num9
num

más de 1 año hace

Resuelto


num8
num

más de 1 año hace

Resuelto


num7
num

más de 1 año hace

Resuelto


num6
num

más de 1 año hace

Resuelto


num5
num

más de 1 año hace

Resuelto


num4
nmjhg

más de 1 año hace

Resuelto


num3
nam

más de 1 año hace

Resuelto


nam2
nam

más de 1 año hace

Resuelto


num
num

más de 1 año hace

Cargar más