PALINDROMIC CODE

All 5-digit codes where a digit is used at most twice is generated and listed in ascending order. N codes consecutive in the list will be selected. What is the minimum value of N for which having a palindromic code in the list is guaranteed?

A palindromic code is one that is the same forwards and backwards. For example: 00000, 02520, 47974.