Gelöst


Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...

mehr als 2 Jahre vor

Gelöst


Under the sea: Snell's law & total internal reflection
<https://en.wikipedia.org/wiki/Snell's_law> When a light travels from one medium to another medium, depending on the refracti...

mehr als 2 Jahre vor

Gelöst


Calculate the volume of the football

mehr als 2 Jahre vor

Gelöst


Orthogonalize 3 column vectors using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize three linearly independent column vectors. Return three output column vectors that...

mehr als 2 Jahre vor

Gelöst


Orthogonalize a 2x2 matrix using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize two linearly independent column vectors. Return two output column vectors that are...

mehr als 2 Jahre vor

Gelöst


Průměr z výběrového souboru
Napište funkci, která vrátí průměr z hodnot vektoru data. Např data = [1, 2, 3, 4, 5, 6, 7, 8, 9] je prumer = 5.

mehr als 2 Jahre vor

Gelöst


Calculating distance of lightning based on time delay
If we know the time delay between when we see lightning and hear thunder then we can calculate approximate distance(in meters) o...

mehr als 2 Jahre vor

Problem


Merge two integers
We want to merge the digits of two integers having the same number of digits to obtain a new integer whose digits are obtained b...

mehr als 2 Jahre vor | 3 | 22 Lösungsvorschläge

Problem


Determine if a Digit is Isolated
A digit is considered isolated if both its left and right neighbors are different from itself. For example, in the number 776444...

mehr als 2 Jahre vor | 1 | 15 Lösungsvorschläge

Gelöst


finding vector pair with min angle between them
given a matrix with more than one row , compare row vectors of the given matrix and find the pair with the minumum angle between...

mehr als 2 Jahre vor

Gelöst


Write a code to implement Euler's method to integrate a simple function
Euler's method approximates the solution to a differential equation as where . The challenge is to write a code that can take...

mehr als 2 Jahre vor

Gelöst


Write a code to implement the improved Euler's method to integrate a simple function
Euler's method approximates the solution to a differential equation as where . It's possible to improve on Euler's method by ...

mehr als 2 Jahre vor

Problem


Pivot index
Let L be a vector of numbers. We are searching for the index n of the pivot element defined as follows: the dot product of the e...

mehr als 2 Jahre vor | 0 | 14 Lösungsvorschläge

Gelöst


Check Digit - 01
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. It used ...

mehr als 2 Jahre vor

Problem


Counting the occurrences of a digit in a book
The printer has printed a book with 'p' pages. How many times did they use the character 'd'? In other words, how many times doe...

mehr als 2 Jahre vor | 1 | 21 Lösungsvorschläge

Gelöst


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

mehr als 2 Jahre vor

Gelöst


Ackerman Function

mehr als 2 Jahre vor

Gelöst


How brilliant are you?
A Brilliant number is defined as a number with two prime factors, both of which have the same number of digits. Some examples: ...

mehr als 2 Jahre vor

Gelöst


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

mehr als 2 Jahre vor

Gelöst


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

mehr als 2 Jahre vor

Gelöst


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

mehr als 2 Jahre vor

Gelöst


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

mehr als 2 Jahre vor

Gelöst


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

mehr als 2 Jahre vor

Gelöst


Insert zeros II

mehr als 2 Jahre vor

Gelöst


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

mehr als 2 Jahre vor

Gelöst


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

mehr als 2 Jahre vor

Gelöst


Sudoku

mehr als 2 Jahre vor

Gelöst


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

mehr als 2 Jahre vor

Gelöst


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

mehr als 2 Jahre vor

Gelöst


check whether a number is a pentatope number
<https://oeis.org/A000332>

mehr als 2 Jahre vor

Mehr laden