Community Profile

photo

Dishant Varshney


2017년부터 활동

Followers: 0   Following: 0

통계

  • Quiz Master
  • First Review
  • Speed Demon
  • Creator
  • CUP Challenge Master
  • Commenter
  • Promoter
  • Solver

배지 보기

Feeds

보기 기준

문제를 풀었습니다


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

대략 6년 전

문제


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

대략 6년 전 | 2 | 솔버 수: 210

문제를 풀었습니다


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

6년 초과 전

문제를 풀었습니다


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

6년 초과 전

문제를 풀었습니다


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

6년 초과 전

문제를 풀었습니다


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

6년 초과 전

문제를 풀었습니다


square number
Square a number

6년 초과 전

문제를 풀었습니다


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


Area of a circle
Find the value for area of the circle if diameter is given

6년 초과 전

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

6년 초과 전

문제를 풀었습니다


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

6년 초과 전

문제를 풀었습니다


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

6년 초과 전

문제를 풀었습니다


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

6년 초과 전

문제를 풀었습니다


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

6년 초과 전

문제를 풀었습니다


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

6년 초과 전

문제를 풀었습니다


surface of a spherical planet
you just discovered its circumference, that is the input.

6년 초과 전

문제를 풀었습니다


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

6년 초과 전

문제를 풀었습니다


Array of Ones
Create a 100 X 100 array of ones.

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

6년 초과 전

문제를 풀었습니다


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

6년 초과 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

6년 초과 전

문제를 풀었습니다


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

6년 초과 전

문제를 풀었습니다


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

6년 초과 전

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

6년 초과 전

문제를 풀었습니다


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

6년 초과 전

문제를 풀었습니다


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

6년 초과 전

더 보기