A résolu


Find the Nth number in the 5-sequence
Find the Nth number in the 5-sequence. 5, 15, 25, 35, 45, 55, ... Hint: Refer test suites

environ un mois il y a

A résolu


Find the Nth number in the 4-sequence
Find the Nth number in the 4-sequence. 4, 8, 12, 16, 24, 28, 32, 36, 44 ... Hint: Refer test suites

environ un mois il y a

A résolu


Find the Nth number in the 3-sequence
Find the Nth number in the 3-sequence. 3, 6, 9, 12, 15, 18, 21, 24, 27, 33 ... Hint: Refer test suites

environ un mois il y a

A résolu


Find the Nth number in the 2-sequence.
Find the Nth number in the sequence. 2, 4, 6, 8, 12, 14, 16, 18, 22, ... Hint: Refer test suites

environ un mois il y a

A résolu


Easy Sequences 37: Natural Factorable Polynomials
A polynomial of the form: , for , is said to be natural factorable if it can be factored into products of first degree binomials...

environ un mois il y a

A résolu


Easy Sequences 36: Hyperbolic Lattice Points
The graph, shown below, of the hyperbola: , passes through four positive lattice points:. ...

environ un mois il y a

A résolu


Easy Sequences 35: Cutting a donut to Semi-prime pieces
The figure below illustrates how a torus (donut shape) can be cut in pieces with only cuts: ...

environ un mois il y a

A résolu


Easy Sequences 29: Odd proper divisors of odd proper divisors
The number is special. It has odd number of proper divisors: . Furthermore, if you take any of its proper divisors, say , it t...

environ un mois il y a

A résolu


Easy Sequences 22: Sum of Proper Fractions
Let 'F' be the set of all proper fractions in lowest term, whose denominator is less than or equal 'd'. So, for d = 10, we have:...

environ un mois il y a

A résolu


Easy Sequences 20: Counting Prime-sided Rectangles
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

environ un mois il y a

A résolu


Easy Sequences 19: Length of Prime-sided Rectangle with Maximum Area
A prime-sided rectangle is a rectangle having sides represented by prime numbers. The figure below shows all the possible prime-...

environ un mois il y a

A résolu


Easy Sequences 17: Mu Variant Function
The mobius function is an important arithmetic function. It is often represented by the Greek letter mu (μ), and is sometimes ca...

environ un mois il y a

A résolu


Pascal's Pyramid - A Variation with an Arial View
Let's create a matrix of size N x N containing a Pascal's Triangle in each quadrant that diverges from the centre to form an ari...

environ un mois il y a

A résolu


Pascal's Triangle
Create a matrix of size N x N containing a Pascal's Triangle that starts from the upper left corner according to the test cases ...

environ un mois il y a

A résolu


Two Sum
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You m...

environ un mois il y a

A résolu


Container With Most Water
You are given an integer array height . There are vertical lines drawn such that the two endpoints of the ith line are (i, 1) an...

environ un mois il y a

A résolu


FEN to Chess Board
Note: This problem is the reverse, or complement, of Problem 61144 - FEN Chess Notation. Given a FEN (Forsyth-Edwards Notation)...

environ un mois il y a

A résolu


How Long is the Border Between Unitopia and Zerostan?
Two countries, Unitopia (denoted by ones) and Zerostan (denoted by zeros) are engaged in a long-standing dispute: how long is th...

environ un mois il y a

A résolu


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

environ un mois il y a

A résolu


Generate Golomb's sequence
Generate Golomb's sequence up to the given number. If n=4, then seq = [1, 2, 2, 3, 3, 4, 4, 4] If n=6, then s...

environ un mois il y a

A résolu


Insert structure in a parameter-cell array.
When creating Matlab GUI elements, you can mix value pairs with structures in the list of input arguments, e.g. |uicontrol('t...

environ un mois il y a

A résolu


stem and leaf plot
A stem-and-leaf display is a device for presenting quantitative data in a graphical format, similar to a histogram, to assist i...

environ un mois il y a

A résolu


The other half of the Fibonacci sequence
The <http://mathworld.wolfram.com/FibonacciNumber.html "Fibonacci sequence"> — F = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...

environ un mois il y a

A résolu


CowBoy
A group of cowboys standing in circle form. They have one gun. The first cowboy shoot the cowboy beside him (second one) and giv...

environ un mois il y a

A résolu


Invert a 3D rigid-body transformation
Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

environ un mois il y a

A résolu


Yoonir - 03
Find the area of a seven-pointed star inscribed in a circle of radius r.

environ un mois il y a

A résolu


[Master Regular Expression] Validate IP Address
Given a string queryIP, return "IPv4" if IP is a valid IPv4 address, "IPv6" if IP is a valid IPv6 address or "Neither" if IP is ...

environ un mois il y a

A résolu


[Master Regular Expression] Strong Password Checker II
A password is said to be strong if it satisfies all the following criteria: It has at least 8 characters. It contains at l...

environ un mois il y a

A résolu


[Master Regular Expression] Vowel-Consonant Score
You are given a string s consisting of lowercase English letters, spaces, and digits. Let v be the number of vowels in s and c ...

environ un mois il y a

A résolu


[Master Regular Expression] Largest Substring Between Two Equal Character
Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If ther...

environ un mois il y a

Charger plus