3Sum LeetCode Problem | Coding Interview Problem

preview_player
Показать описание
3Sum is basically a problem from LeetCode but also frequently asked in coding interview. In this video we are going to discuss the most optimal solution for this problem.
Timeline :

1. Understanding Problem - 0:00 - 1:43
2. Building Algorithm - 1:44 - 7:02
3.Code implementation - 7:03 - 9:30
Рекомендации по теме
Комментарии
Автор

Few optimizations here:
1. for loop runs till the entire length of the array while it should run till 3rd last element only.
2. k is every time being reinitialized to the end of the array, it should decrease in every iteration.

praxinow
Автор

Appreciate your work!! Thanks for helping me overcome DS Fear

nupursharma
welcome to shbcf.ru