Skip to content

Instantly share code, notes, and snippets.

View kmdupr33's full-sized avatar

Matt Dupree kmdupr33

View GitHub Profile
// Avantos Coding Challenge: computePolkadotScore
// Formula:
// score = polkadotsOutsideLips + (polkadotsInsideLips * pupilCharCount)
function computePolkadotScore(asciiArt) {
const lines = asciiArt.split('\n');
// Lips: second occurrence of 6+ tildes (the first ~~~~~~ is the forehead, the second is the mouth)
const tildeRanges = [];
for (const line of lines) {
@KenVanHoeylandt
KenVanHoeylandt / build.gradle
Last active November 7, 2024 20:06
Gradle auto-installing pre-commit hook
apply from: rootProject.file('gradle/install-git-hooks.gradle')