Комментарии:
I didn't know we could custom sort!! Thanks for the video
Ответитьlove the video! very thorough
ОтветитьReally nice video! Didn't come in with expectations of any good explanations since the video is 20min but covers 5 medium questions but to my surprise it very well did!
ОтветитьHello, for the Search Suggestions System don't you think it's better this way:
def TypeSearch(products,search_word):
final = []
i=0
while(i<len(search_word)):
sw = search_word[0:i+1]
proposed_products = []
for product in products:
if(product.startswith(sw)):
proposed_products.append(product)
if(len(proposed_products)>3):
proposed_products.sort()
final.append(proposed_products[0:3])
else:
final.append(proposed_products)
i+=1
print(final)
ty for the video btw!
Keep going bro
Ответитьkeep the good work
ОтветитьPlease continue posting these videos. If possible do separate videos for each type of the algorithm
Ответить