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


Help me in blocked website please.

Hi iam pcpa1kalyan. I had asked a question about blocked websites problem a week ago. Since then i tried to optimize my question a lot. This is the current version of my code. It is not passing only in 3 test cases now. I can't find a way out. Please someone point out the bug in my code.

Here is my code

asked 28 May '17, 12:00

pcpa1kalyan's gravatar image

accept rate: 0%

edited 29 May '17, 09:14

Try to bump the old thread you created next time. The info there could be of help.

(28 May '17, 12:10) vijju123 ♦4★

hey vijju, I am not getting what you have meant. Could you elaborate?

(29 May '17, 08:06) pcpa1kalyan2★

Bro, Simply go and watch this video on trie and then try to implement it yourself. If still having problem this is my solution :- I also solved it after watching this video on basic of tries. If still having problem comment it down below.


answered 28 May '17, 12:50

ashcode0605's gravatar image

accept rate: 0%

edited 28 May '17, 12:53

Hey Bro, Thanks a lot for your nice advice. Instead of using tries, I have approached the problem in a different manner. It involves some hashing and a lot of "greediness". My algorithm is perfect so far. But it has some bug which is making my algorithm to fail in 3 test cases when I submit it. I tried a lot but can't find that bug.Any help in this regard would be a great relief for me. Because I am stuck with this problem for almost a week. Anyways, I'll definitely learn about tries. Thank you!!!!!!!

(29 May '17, 09:24) pcpa1kalyan2★

@pcpa1kalyan can't see your code, say's access denied


answered 28 May '17, 12:32

abhishel's gravatar image

accept rate: 10%

Hi @Abhishel, You can see my code up there now. Thank you friend.

(29 May '17, 09:15) pcpa1kalyan2★
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 28 May '17, 12:00

question was seen: 346 times

last updated: 29 May '17, 09:24