Gelöst


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

12 Tage vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

12 Tage vor

Gelöst


[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 ...

12 Tage vor

Gelöst


[Master Regular Expression] Reformat Phone Number
You are given a phone number as a string number. number consists of digits, spaces ' ', and/or dashes '-'. You would like to re...

12 Tage vor

Gelöst


[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...

12 Tage vor

Gelöst


[Master Regular Expression] Goat Latin
You are given a string sentence that consist of words separated by spaces. Each word consists of lowercase and uppercase letters...

12 Tage vor

Gelöst


[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...

12 Tage vor

Gelöst


[Master Regular Expression] String Matching in an Array
Given an array of string words, return all strings in words that are a substring of another word. You can return the answer in a...

12 Tage vor

Gelöst


[Master Regular Expression] Keyboard Row
Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of American ke...

12 Tage vor

Gelöst


[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 ...

12 Tage vor

Gelöst


[Master Regular Expression] String To Integer
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer. The algorithm for myAtoi(string s)...

12 Tage vor

Gelöst


[Master Regular Expression] Unique Email Addresses
Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase letters, the email ma...

12 Tage vor

Gelöst


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

12 Tage vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

12 Tage vor

Gelöst


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

12 Tage vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

12 Tage vor

Gelöst


calculate the length of matrix
input 1 array, calculate the length

12 Tage vor

Gelöst


to the 2 all elements
to the 2 all elements

12 Tage vor

Gelöst


the average value of the elements
Calculate the average value of the elements in the array

12 Tage vor

Gelöst


Converts numbers into characters
Converts numbers into characters

12 Tage vor

Gelöst


Find the max element of the array
Find the max element of the array

12 Tage vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

12 Tage vor

Gelöst


Draw a '0' in a one matrix!

12 Tage vor