Solved

Sum of series

a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

3 months ago

Solved

Polarisation

You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

3 months ago

Solved

Octoberfest festival

A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

3 months ago

Solved

ASCII Birthday Cake

Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

3 months ago

Solved

Is it really a 5?

A number containing at least one five will be passed to your function, which must return true or false depending upon whether th...

3 months ago

Solved

Day counter function

Write a function called _day_counter_ that returns the number of Mondays that fell on the first day of the month in a given year...

3 months ago

Solved

Friday or not

I love Friday. Please tell me whether the day is Friday. Dateformat is 'yyyy-mm-dd' or 'dd-mmm-yyyy' or 'mm/dd/yyyy'. Exa...

3 months ago

Solved

Count the days

Count the occurrence of a particular day (e.g. Monday) for a given duration.

3 months ago

Solved

Leap Year

According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

3 months ago

Solved

Decrypt the cypher using XOR encryption (for beginners)

Inspired by Project Euler n°59 Each character on a computer is assigned a unique code and the preferred standard is ASCII (...

3 months ago

Solved

Legend of Zelda - Rupee Count (Item Purchase)

Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that an arr...

3 months ago

Solved

Legend of Zelda - Rupee Count (Compact)

Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

3 months ago

Solved

Tautology

Check if the given expression is always true. For example, the sentence '~(A & B) == (~A | ~B)' is always true. Chara...

3 months ago

Solved

Parse me a Lisp

*Description* In Lisp and its variants, function calls are done using parenthesis where the first item in the parenthesis is ...

3 months ago

Solved

Laws of motion 4

Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

3 months ago

Solved

Pandiagonal Prime Magic Square Verification

Verify if an NxN matrix is a Pandiagonal Prime Magic Square. Required properties: 1) N^2 prime values ( No repeats, 1 ...

3 months ago

Solved

Dudeney Numbers: Numbers which are the cube of their decimal sum

From Wikipedia: _A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equa...

3 months ago

Solved

Poker Series 11: selectBestHand

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

3 months ago

Solved

Electrical Diode Current Calculation

In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

3 months ago