Community Profile

photo

Lalit Kumar


105 total contributions since 2018

Contact

Lalit Kumar's Badges

  • First Review
  • CUP Challenge Master
  • Commenter
  • Promoter
  • Solver

View details...

Contributions in
View by

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

10 días ago

Solved


Project Euler: Problem 5, Smallest multiple
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

alrededor de 1 año ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

alrededor de 1 año ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

alrededor de 1 año ago

Solved


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

alrededor de 1 año ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Solved


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

alrededor de 1 año ago

Solved


Return area of square
Side of square=input=a Area=output=b

alrededor de 1 año ago

Solved


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

alrededor de 1 año ago

Solved


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

alrededor de 1 año ago

Solved


convert matrix to single column
given any matrix, convert it to single column

alrededor de 1 año ago

Solved


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

alrededor de 1 año ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

alrededor de 1 año ago

Solved


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

alrededor de 1 año ago

Solved


square root
Find the square root (y) of an input (x).

alrededor de 1 año ago

Solved


Calculate square and cube of number
Calculate square and cube of number x

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Solved


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

alrededor de 1 año ago

Solved


Area of rhombus
Calculate the rhombus area

alrededor de 1 año ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

alrededor de 1 año 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...

alrededor de 1 año ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

alrededor de 1 año ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

alrededor de 1 año ago

Solved


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

alrededor de 1 año ago

Load more