Community Profile

photo

priyanka shrivastava


257 total contributions since 2013

Hi
Professional Interests: Coding

Contact

priyanka shrivastava's Badges

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

View details...

Contributions in
View by

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

3년 이상 ago

Solved


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

3년 이상 ago

Solved


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

5년 이상 ago

Solved


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

5년 이상 ago

Solved


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

5년 이상 ago

Solved


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

5년 이상 ago

Solved


give nth decimal place of pi
max 15th place after the decimal point is ok for now

5년 이상 ago

Solved


Positive Infinity
Round the array a towards positive infinity

5년 이상 ago

Problem


Positive Infinity
Round the array a towards positive infinity

5년 이상 ago | 1

Solved


Negative Infinity
Round the given array a towards negative infinity.

5년 이상 ago

Problem


Negative Infinity
Round the given array a towards negative infinity.

5년 이상 ago | 0

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

5년 이상 ago

Solved


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

5년 이상 ago

Problem


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

5년 이상 ago | 1

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

5년 이상 ago

Problem


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

5년 이상 ago | 0

Solved


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

5년 이상 ago

Problem


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

5년 이상 ago | 0

Problem


It's all about memory...!!!
Covering some basic topics I haven't seen anywhere in Cody. Write a function to Pre-allocate memory for a Non Double matrix

5년 이상 ago | 0

Solved


It's all about memory...!!!
Covering some basic topics I haven't seen anywhere in Cody. Write a function to Pre-allocate memory for a Non Double matrix

5년 이상 ago

Solved


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

5년 이상 ago

Solved


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

5년 이상 ago

Solved


Phonebook-like problem
strcmpi('Yes', 'No')

5년 이상 ago

Solved


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

5년 이상 ago

Solved


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

5년 이상 ago

Solved


Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

5년 이상 ago

Solved


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

5년 이상 ago

Solved


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

5년 이상 ago

Solved


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

5년 이상 ago

Solved


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

5년 이상 ago

Load more