Skip to content

Instantly share code, notes, and snippets.

View aMoRRoMa's full-sized avatar

Roman Gafiatullin aMoRRoMa

View GitHub Profile
@aMoRRoMa
aMoRRoMa / giveMyMoney.js
Created November 1, 2019 08:20 — forked from unilecs/giveMyMoney.js
Task about giving cash from ATM
function giveMyMoney(money, coins) {
let needCoins = [], minCoins = []; minCoins[0] = 0;
// перебираем все суммы до заданной суммы (можно начать с мин.купюры)
for (let sum = 1; sum <= money; sum++) {
// по умолчанию эта сумма не для выдачи
minCoins[sum] = Number.MAX_VALUE;
@aMoRRoMa
aMoRRoMa / factorial.js
Created October 22, 2019 12:53 — forked from ytiurin/factorial.js
Calculate extra large factorial
function factorial(userInt)
{
if(userInt===0)
return '1'
if(!userInt)
return ''
var i, nextNumber, carret,
@aMoRRoMa
aMoRRoMa / multiple_ssh_setting.md
Created July 15, 2017 09:58 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@aMoRRoMa
aMoRRoMa / The Technical Interview Cheat Sheet.md
Last active January 24, 2019 07:24 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.