You are not logged in. Please login at www.codechef.com to post your questions!

×

getting wa although using the same approach as online solution mentioned in editorial

https://www.codechef.com/JUNE18B/problems/SHKSTR/ https://ideone.com/eFFVqJ Here I am using unordered_map in trie to reduce unnecessary space but I have tried it directly also still getting wa. I am adding string no. to vector of strings at that position only if string having greater index than the last element in vector is lexicographically smaller than it

asked 12 Jun, 12:38

rogue_one1's gravatar image

2★rogue_one1
52
accept rate: 0%

edited 12 Jun, 12:41

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×183
×179

question asked: 12 Jun, 12:38

question was seen: 45 times

last updated: 12 Jun, 12:41