Giter VIP home page Giter VIP logo

dailyproblems's Introduction

Daily problems

Daily problems that I do and my solutions in Javascript

Problems may come from various textbooks, leetcode, and interesting questions from sites like reddit or quora.

Some notable problems from the list and why?

  • queryToObject.js because I had to use decodeURIComponent()
  • pascalTriangle.js because I used slice with negative number e.g. array.slice(-2). Might be useful for getting specific number of values at the end in the future.
  • stripURL.js because I had to use new Map() instead of using regular object. Map retains order; regular objects do not.
  • solomonDistanceGame.js because instead of using if-else or switch, I utilized nested ternary operators.
  • highLow.js because while it was an easy problem, I utilized .sort() with a callback and used ES6 string template literal
  • trackCharString.js because I used regex and String.prototype.match() to track of desired characters
  • underscoreDefaults.js because I used Array.prototype.slice.call() and arguments. Also, should use undefined as a filter instead of !, because falseys such as 0 passes the ! test.

dailyproblems's People

Contributors

jmtfeliciano avatar

Stargazers

Luca Liebenberg avatar

Watchers

James Cloos avatar  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.