Comments on: Trie data structure https://demo.ritambhara.in/trie-data-structure/ Coding / System Design Interviews Wed, 06 Sep 2017 18:09:35 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Aman Jain https://demo.ritambhara.in/trie-data-structure/#comment-2016 Wed, 06 Sep 2017 18:09:35 +0000 http://www.ritambhara.in/?p=8089#comment-2016 yo
#include
using namespace std;
typedef long long int ll;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
ll t;
scanf(“%lld”,&t);
while(t–)
{
ll n,i,count1=0,lo=0;
scanf(“%lld”,&n);
for(i=0;i1){
count1++;
}
}
if(count1>=2||count1==1&&lo==0)
printf(“no”);
else
printf(“yes”);
printf(“\n”);
}
return 0;
}

]]>