Resuelto


reverse string
input='rama' output='amar'

más de 7 años hace

Resuelto


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

más de 7 años hace

Resuelto


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

más de 7 años hace

Resuelto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

más de 7 años hace

Resuelto


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

más de 7 años hace

Resuelto


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

más de 7 años hace

Resuelto


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

más de 7 años hace

Resuelto


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

más de 7 años hace

Resuelto


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

más de 7 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

más de 7 años hace

Resuelto


Concatenate two strings
Its very easy. Just concatenate two strings.

más de 7 años hace

Resuelto


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

más de 7 años hace

Resuelto


Square a Number
Given an input x, return y, which is equal to the square of x.

más de 7 años hace

Resuelto


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

más de 7 años hace

Resuelto


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

más de 7 años hace

Resuelto


Reverse a matrix
Its simple. You have to reverse a given matrix.

más de 7 años hace

Resuelto


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

más de 7 años hace

Resuelto


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

más de 7 años hace

Resuelto


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

más de 7 años hace

Resuelto


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

más de 7 años hace

Resuelto


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

más de 7 años hace

Resuelto


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

más de 7 años hace

Resuelto


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

más de 7 años hace

Resuelto


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

más de 7 años hace

Resuelto


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

más de 7 años hace

Resuelto


Max of a Vector
Write a function to return the max of a vector

más de 7 años hace

Resuelto


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

más de 7 años hace

Resuelto


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

más de 7 años hace

Resuelto


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

más de 7 años hace

Resuelto


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

más de 7 años hace

Cargar más