import {ISolution} from '../solution.interface';

export class Solution implements ISolution<number, string> {
  solve(input: number): string {
    return "bla";
  }

  private isSafe(number: number): boolean {
    return !(number === 13 || number.toString().indexOf("4") !== -1);
  }
}

import {ISolution} from '../solution.interface';

export class Solution implements ISolution<number, string> {
  solve(input: number): string {
    let floors = [];
    for (let f = -1; f < input; f++) {
      if (this.isSafe(f)) {
        floors.push(f);
      }
    }
    return "bla";
  }

  private isSafe(number: number): boolean {
    return !(number === 13 || number.toString().indexOf("4") !== -1);
  }
}

Add all safe floors to an array
Add all safe floors to an array
