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

Автор md1844, история, 4 года назад, По-английски

SHARECHAT 3RD QUESTION: A-Z COUNT

Need help on this question. I used map and binary search still all test cases not passed. Test is over now.

So if anybody can share the working code it would be helpful for me.\

Image:

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Just make vector for every character and find lower bound of k for S type queries and (lower bound of (k+1)) — 1 for L type queries. Also, Handle Not found condition. If you did the same and still getting WA to check your implementation.