Did she fix the actual bug👀 #computerscience #softwareengineer #coding #python #programming

preview_player
Показать описание
#coding #softwareengineering #programming #computerscienceengineer #python
Рекомендации по теме
Комментарии
Автор

She stated this is "why I hate Python, why don't they put the types in the argument", lol, they do actually. It is a feature that has been out for a while. def twoSum(nums:list, target:int) -> None

abbysands
Автор

Almost correct; think you need to do
For j in range(i+1, len(nums))

JeronAlford
Автор

def twosum(nums, target):
for i in range(len(nums)):
for j in range(i, len(nums)):
if nums[i]+nums[j] == target:
return i, j
return None, None

muhammedshahidcc
Автор

can you visit to vietnam and interview me?

inhcong
Автор

This is a worse way to handle this problem though due to the time complexity O(n^2)

GuffyGecko
visit shbcf.ru