Тёмный
No video :(

Prefix Sum Array and Range Sum Queries 

Profound Academy
Подписаться 411
Просмотров 3,3 тыс.
50% 1

Prefix Sum Arrays or simply Prefix Sums are used to perform fast range sum queries on a given array. The total time complexity of the algorithm is O(N + Q) where N is the number of elements in the given array and Q is the number of range sum queries. Each of the Q queries are answered in O(1) time.
This topic often appears during technical interviews at top tech companies (like Google, Facebook, Amazon, etc). You can prepare for those interviews by practicing and solving challenging problems by following the links below.
💻 Practice: profound.academy/algorithms-d...
📚 Full DSA Course: profound.academy/algorithms-d...
🎓 Teach with Profound Academy: profound.academy/teach
profound.academy
/ profound.academy.inc
/ profound.academy.inc
/ profound-academy-inc
Chapters:
0:00 Prefix Sum and Range Sum Queries Problem Statement
0:18 Example of Video Performance
0:58 Naive Approach
1:29 Reformulation of the Problem
2:02 Naive Prefix Sum Array Calculation
3:41 Prefix Sum Array Calculation
4:36 Range Sum Queries
5:20 Problem with L being 0
5:42 The Final Algorithm
6:51 Time and Memory Complexity
#PrefixSum #Algorithm #DataStructures #Algorithms #ProblemSolving #AlgorithmicInterview #InterviewPreparation #DataStructuresInterview #InterviewQuestions #TechInterview #TechInterviews #DSA #GoogleInterview #FAANG #Algorithms

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@mherkhachatryan666
@mherkhachatryan666 Год назад
actually great video, thanks for uploading.
@jiteshpatel1820
@jiteshpatel1820 Год назад
Looking forward to see more videos... Thank you for sharing.
@user-tv3ov2jb5q
@user-tv3ov2jb5q Год назад
Excellent explanation! Thank you.
@ramanbalagan2077
@ramanbalagan2077 5 месяцев назад
Thanks! great explanation.
@HaykTarkhanyan
@HaykTarkhanyan Год назад
Fantastic job, good luck
@ArgishtyStepanyan
@ArgishtyStepanyan Год назад
Awesome! 🎉
@annaavanesyan515
@annaavanesyan515 Год назад
Great job! Very well explained :)
@davitgarage
@davitgarage Год назад
Nice
@omaraizab6575
@omaraizab6575 2 месяца назад
This is a great explanation, thank you. I want to ask what is the tools used for the presentation?
@profound.academy
@profound.academy 2 месяца назад
Thanks a lot! The animations are generated with a Python library called Manim. After that the editing is done with Davinci Resolve.
Далее
2D Prefix Sum and Submatrix Sum Queries
5:12
Просмотров 4,2 тыс.
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Бмв сгорела , это нормально?
01:01
Good deed #standoff #meme
00:15
Просмотров 771 тыс.
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌇
3:16:26
Prefix Sum Array Explained
8:09
Просмотров 52 тыс.
Sliding Window Technique
6:18
Просмотров 7 тыс.
Winning Facebook (Meta) Hacker Cup Qual Round 2022?
53:55
Range Sum Query 2D - Immutable - Leetcode 304 - Python
13:17
What Is Big O? (Comparing Algorithms)
8:15
Просмотров 169 тыс.
Radix Sort Algorithm Introduction in 5 Minutes
4:39
Просмотров 297 тыс.
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 828 тыс.
Subarray with given sum
5:04
Просмотров 190 тыс.
Бмв сгорела , это нормально?
01:01