code.ashish.me

Atom feed

Recently added: 02 Count Of Subset Sum, 416 Partition Equal Subset Sum, 01 Subset Sum, 518 Coin Change 2, 983 Minimum Cost For Tickets

01 Find Area Of Circle

function areaOfCircle(radius) {
  return 3.14 * radius ** 2;
}

test('area of circle', () => {
  expect(areaOfCircle(1)).toEqual(3.14);
});

Created 2019-11-24T04:41:20+05:18, updated 2019-11-27T01:50:47+05:18 · History · Edit