Let\'s define eleven-non-free
numbers:
If we consider a number as a string, then if any substring inside is a (non-zero) power of 11
, then this
given a k, find the kth eleven-non-free number.
...
is a big question.
Since this is time taking question, I am writing pseudo code.
var eleven_powers = [];
for (var i=0; i<1000; i++)
eleven_powers.push(Math.pow(11,i));
non-eleven-free
numbers to an extent you can. This will have to deal with big integers.for (var i=11; i
Take k, return results_array[k]