Digital Dictionary

Can can anyone please help me identify why runtime error is comming.

@harshitgrover12 there is problem in your build logic thats why it is giving runtime error please review your build logic again.

Can you please tell precisely where?

@harshitgrover12 at line no 38 ,if temp1-children[s[i]] dont exist then it will give error.

are u saying about line 28 ?

as i think i have put the condition whether temp->children exists

Also i executed only build logic which worked fine.the problem lies in the search part.

@harshitgrover12 hey ,apne search function me root ==NULL wali conditiom dalo and else hta do kyunki tumne else ke age braces nhi lgaye age ka pura code else me ayega and baki logic sahi hai.


Can you please make the necessary changes and then send the code .i did what u told but still the problem persists.

@harshitgrover12 bro please send me link of question so that I can submit it.

hi thanku for your help i figured out the mistake

@harshitgrover12 ok good