Блог пользователя alan_navarro

Автор alan_navarro, 11 лет назад, По-английски

Hello Community. I have a question to all Java programmers. Given 10 000 000 random strings with the form "X-NN-XX" where X represents a english capital letter and N a number, count the number of differents strings and print this number.

I wrote a code which override the hashCode of a class Key, where returns the attribute (which is a representation of the string in 36-base) but the program never ends. I suppose my way to generate the 36-base int is not good.

Anyone can help me?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится