We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defcreateAsciModel():a=97z=122res=[]while(True):if(a>z):breakres.append(a)a=a+1returnresdefcheckAsciModel(record,asciModel):foridxinrange(len(asciModel)):asci=asciModel[idx]ifasci==(ord(record)):returnidxdefcheckPangram(lowerCase,createAsciModel):asciModel=createAsciModelforrecordsinlowerCase:idx=checkAsciModel(records,asciModel)ifnotidxandidx!=0:continueasciModel.pop(idx)returnasciModeldefpangrams(s):# Write your code herelowerCase=s.lower()asciModel=createAsciModel()pangram=checkPangram(lowerCase,asciModel)iflen(pangram)>0:return'notpangram'return'pangram'
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
C++ Solution:
C# solution
My solution for typescript:
The simplest logic in python