Risolto


List numbers that are not squares
The numbers 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, etc. are not perfect squares. Write a function to list the th term in ...

oltre 3 anni fa

Risolto


Sub-Diagonal Sum
Given a (m x n) matrix and a value r {1,-1}, change every element to the sum of the diagonal led by the element. r=1 > regular ...

oltre 3 anni fa

Risolto


Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

oltre 3 anni fa

Risolto


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

oltre 3 anni fa

Risolto


Easy Sequences 75: Easy as Pisano Pi
Pisano period , of an integer , is the period in which the sequence of Fibonacci numbers modulo repeats. For example it is not ...

oltre 3 anni fa

Risolto


Measure the hydraulic conductivity with a falling-head permeameter
A falling-head permeameter is another device for measuring the hydraulic conductivity of a soil sample. In this problem the sam...

oltre 3 anni fa

Risolto


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

oltre 3 anni fa

Risolto


Easy Sequences 72: Complete Graph
In Graph Theory, we say a graph is a Complete Graph, if all of its nodes are connected to evey other nodes in the graph. Example...

oltre 3 anni fa

Risolto


Measure the hydraulic conductivity with a constant-head permeameter
A constant-head permeameter is a device for measuring the hydraulic conductivity of a soil sample. In this problem the sample i...

oltre 3 anni fa

Risolto


Find out if Quadratic Equation has real roots or not?
Input [a b c] ax^2+bx+c=0 Output [1 or 0] 1= Quadratic Equation has real roots 0= Quadratic Equation has real roots

oltre 3 anni fa

Risolto


AZPC Oddly Triangular: N=10/11/13/14 Digits 3/7/9 Part 3 of 5
AZPC created the Oddly Triangular contest on 9/7/22. The challenge is to find the longest sequence of N odd digits such that sum...

oltre 3 anni fa

Risolto


AZPC Oddly Triangular: N=35/305 using Digits 3/7/9 Part 5 of 5
AZPC created the Oddly Triangular contest on 9/7/22. The challenge is to find the longest sequence of N odd digits such that sum...

oltre 3 anni fa

Risolto


AZPC Oddly Triangular: N=34/304 using Digits 3/7/9 Part 4 of 5
AZPC created the Oddly Triangular contest on 9/7/22. The challenge is to find the longest sequence of N odd digits such that sum...

oltre 3 anni fa

Risolto


AZPC Oddly Triangular: N=8/9 Digits 3/7/9 Part 2 of 5
AZPC created the Oddly Triangular contest on 9/7/22. The challenge is to find the longest sequence of N odd digits such that sum...

oltre 3 anni fa

Risolto


AZPC Oddly Triangular: Small N Part 1 of 5
AZPC created the Oddly Triangular contest on 9/7/22. The challenge is to find the longest sequence of N odd digits such that sum...

oltre 3 anni fa

Risolto


Ambiguous concatenation
Give two expressions that can have different meaning inside/outside a concatenation expression.

oltre 3 anni fa

Risolto


Rotation Matrix to Euler Angles
Given a rotation matrix, generate the Euler Angles as output [phi,theta,psi]. [phi is a rotation around X-axis, theta is rotatio...

oltre 3 anni fa

Risolto


Fun with matrix
Design a sample matrix as given in the test cases

oltre 3 anni fa

Risolto


Easy Sequences 71: A Nonlinear Function with Quadratic Domain
Consider the function: The outputs of this function are fed as domain to another function: ...

oltre 3 anni fa

Risolto


Quaternions to Rotation Matrices
Given a matrix of Quaternions (along the rows), output a 3D matrix of Rotation Matrices.

oltre 3 anni fa

Risolto


Easy Sequences 70: Inflection Points of Binomial Product Function
Inflection points are points along the graph curve of a function, where the curvature of the curve changes from concave to conve...

oltre 3 anni fa

Risolto


Easy Sequences 69: Radix Economy of Factorials
The Radix Economy of a number in a particular base is the number of digits needed to express it in that base, multiplied by the ...

oltre 3 anni fa

Risolto


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

oltre 3 anni fa

Risolto


Magical Land
Mother Earth has gifted humanity a magical land to help all life on earth, in the shape of a n-sided regular polygon. You, bein...

oltre 3 anni fa

Risolto


Which Char Array has the greater decimal value
Given to character arrays, determine which array has the greater decimal value. 'Hello' --> 72 + 101 + 108 + 108 + 111 = 500 ...

oltre 3 anni fa

Risolto


Generate Bernoulli polynomials
The Bernoulli polynomial is a polynomial of order with the properties that and for , where the prime denotes differentiat...

oltre 3 anni fa

Risolto


increasing sequences
Given a string of digits, insert commas to create a sequence of strictly increasing numbers so as to minimize the magnitude of t...

oltre 3 anni fa

Risolto


Number of leaps in binary search
Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

oltre 3 anni fa

Risolto


Chain multiplication - 04
Following up on the problem in 55305, you found the optimal way to multiply a chain of matrices. However, here in this problem,...

oltre 3 anni fa

Risolto


Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...

oltre 3 anni fa

Carica altro