Community Profile

# Shashwat Gopal Jhawar

##### Last seen: 15일 전
82 2021 이후 총 참여 횟수

#### Shashwat Gopal Jhawar's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

15일 전

해결됨

Energy Conversion 2

15일 전

해결됨

Energy Conversion 1

15일 전

해결됨

Converts numbers into characters
Converts numbers into characters

15일 전

해결됨

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

15일 전

해결됨

Find the max element of the array
Find the max element of the array

15일 전

해결됨

the average value of the elements
Calculate the average value of the elements in the array

15일 전

해결됨

Double all elements in the array
Duplicate all elements in the array

15일 전

해결됨

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

15일 전

해결됨

calculate the length of matrix
input 1 array, calculate the length

15일 전

해결됨

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

15일 전

해결됨

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

15일 전

해결됨

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

약 1달 전

해결됨

Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

약 1달 전

해결됨

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

약 1달 전

해결됨

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

약 1달 전

해결됨

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

약 1달 전

해결됨

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

약 1달 전

해결됨

Laws of motion 6

약 1달 전

해결됨

Laws of motion 5

약 1달 전

해결됨

Laws of motion 4

약 1달 전

해결됨

Laws of motion 3

약 1달 전

해결됨

Laws of motion 2

약 1달 전

해결됨

Laws of motion 1

약 1달 전

해결됨

Kinetic energy calculation

약 1달 전

해결됨

Potential energy calculation

약 1달 전

해결됨

Total energy

약 1달 전

해결됨

Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

약 1달 전

해결됨

Temperature Conversion 3

약 1달 전

해결됨

Temperature Conversion 2

약 1달 전