text: import { NotImplementedError } from '../extensions/index.js';
  
  export default function deleteDigit(n) {
    let curNumber = 0;
  
    for (let i = 0; i < n.toString().length; i++) {
      const arr = n.toString().split('');
      arr.splice(i, 1);
      if (arr.join('') > curNumber) {
        curNumber = arr.join('');
      }
    }
    return +curNumber;
  }
  