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

×

TRIE Problem - An Optimized Approach Required.

Hi guys, I was doing this problem on hacker rank related to Trie Data Structure. Required operations were working fine, but during the run, most of the test cases timed out. I need your advice in optimizing the data structure, so that retrievals can be made faster. Here is the Link to the code

asked 07 Nov '16, 13:23

abhiroj786's gravatar image

2★abhiroj786
8111
accept rate: 22%

edited 07 Nov '16, 13:28


It was simple :P. This helped :) *Incase any gets the same problem in future

link

answered 08 Nov '16, 15:35

abhiroj786's gravatar image

2★abhiroj786
8111
accept rate: 22%

edited 08 Nov '16, 15:36

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:

×1,409
×846
×734
×186
×54
×47
×40

question asked: 07 Nov '16, 13:23

question was seen: 743 times

last updated: 08 Nov '16, 15:36