Community Profile

photo

Grace Edlin


Active since 2020

Statistics

All
  • Community Group Solver
  • Cody 10th Anniversary 10-Day Streak
  • Commenter
  • Promoter
  • Thankful Level 2
  • Treasure Hunt Participant
  • Solver
  • Thankful Level 1

View badges

Content Feed

View by

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

2 months ago

Solved


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

4 months ago

Solved


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

4 months ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

4 months ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4 months ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

4 months ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

4 months ago

Solved


kmph to mps
convert kilometer per hour to meter per second

4 months ago

Solved


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

4 months ago

Solved


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

4 months ago

Solved


Kinetic energy calculation

4 months ago

Solved


Potential energy calculation

4 months ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

4 months ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

4 months ago

Solved


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

4 months ago

Solved


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

4 months ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

4 months ago

Solved


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

4 months ago

Solved


persistant sum
There will be 9 tests for this problem. In each test you will be provided with 2 integers n=[n1,n2], where n2 is equal to t...

4 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

4 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

4 months ago

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

4 months ago

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

4 months ago

Solved


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

6 months ago

Solved


Laws of motion 5

6 months ago

Solved


Laws of motion 1

6 months ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

6 months ago

Solved


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

8 months ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

8 months ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

8 months ago

Load more