mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
chore: better Prettier config for easier reviews
This commit is contained in:
@ -7,7 +7,7 @@ export const getMaximumFrequencyDeviation = (string) => {
|
||||
/** @type {string[]} */
|
||||
const subStrings = []
|
||||
for (let index = 0; index < string.length; index++) {
|
||||
let subString = ''
|
||||
let subString = ""
|
||||
for (let subIndex = index; subIndex < string.length; subIndex++) {
|
||||
subString += string[subIndex]
|
||||
subStrings.push(subString)
|
||||
|
@ -1,13 +1,13 @@
|
||||
import readline from 'node:readline'
|
||||
import readline from "node:readline"
|
||||
|
||||
import { getMaximumFrequencyDeviation } from './getMaximumFrequencyDeviation.js'
|
||||
import { getMaximumFrequencyDeviation } from "./getMaximumFrequencyDeviation.js"
|
||||
|
||||
const input = []
|
||||
const readlineInterface = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
output: process.stdout,
|
||||
})
|
||||
readlineInterface.on('line', (value) => {
|
||||
readlineInterface.on("line", (value) => {
|
||||
input.push(value)
|
||||
})
|
||||
|
||||
@ -15,4 +15,4 @@ const solution = () => {
|
||||
console.log(getMaximumFrequencyDeviation(input[0]))
|
||||
}
|
||||
|
||||
readlineInterface.on('close', solution)
|
||||
readlineInterface.on("close", solution)
|
||||
|
Reference in New Issue
Block a user