Giter Club home page Giter Club logo

cssmemslider's Introduction

cssMemSlider

cssMemSlider codejam

function getFactorial(n) { if (n === 1) return 1; return n * getFactorial(n - 1); }

function getSumBetweenNumbers(n1, n2) { return ((n1 + n2) / 2) * (n2 - n1 + 1); }

function isTriangle(a, b, c) { const max = Math.max(a, b, c); return max < a + b + c - max; }

function doRectanglesOverlap(rect1, rect2) { return rect1.top + rect1.height > rect2.top && rect1.left + rect1.width > rect2.left; }

function getIntervalString(a, b, isStartIncluded, isEndIncluded) { return ${isStartIncluded ? '[' : '('}${a < b ? a : b}, ${a > b ? a : b}${ isEndIncluded ? ']' : ')' }; }

function reverseString(str) { return str.split('').reverse().join(''); }

function reverseInteger(num) { return +num.toString().split('').reverse().join(''); }

function getDigitalRoot(num) { return num .toString() .split('') .reduce((sum, i) => sum + +i, 0) .toString() .split('') .reduce((sum, i) => sum + +i, 0); }

function toNaryString(num, n) { return num.toString(n); }

function getPolynom(...args) { if (args.length === 3) return ((x) => args[0] * x ** 2 + args[1] * x + args[2]); if (args.length === 2) return ((x) => args[0] * x + args[1]); if (args.length === 1) return (() => args[0]); return null; }

cssmemslider's People

Contributors

denis0ff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.