Prefix Sum Algorithm | Sum Query in O(1) | Free DSA Tutorials by SCALER

SCALER
SCALER
7.8 هزار بار بازدید - 2 سال پیش - In this video, we talk
In this video, we talk about problem solving technique called Prefix sum, which is used to solve range queries. The video explains how to solve sum queries in O(1). Contents of Video: - The problem of sum queries and its brute force solution - Intuition behind prefix sum - Construction of prefix sum array and solution to sum queries Discussion of an interview problem based on prefix sum 0:00 Introduction 0:22 : Content of the video 1:03 : Sum of queries problem 6:11 : Intuition behind prefix sum 11:33 : Construction of prefix sum 27:15 : Pseudocode of sum of queries problem 29:15 : Time and Space complexity 32:38 : Question on prefix sum: Count of equilibrium index 41:50 : Pseudocode of the problem 49:05 : Time and Space complexity --------------------------------------- About SCALER ------------------------------------------------- A transformative tech school, creating talent with impeccable skills. Upskill and Create Impact. Learn more about Scaler: bit.ly/3yxcQNZ 📌 Follow us on Social and be a part of an amazing tech community📌 👉 Meet like-minded coder folks on Discord - discord.com/invite/ejFeksEtTq 👉 Tweets you cannot afford to miss out on - twitter.com/scaler_official 👉 Check out student success stories, expert opinions, and live classes on Linkedin - www.linkedin.com/school/scalerofficial 👉 Explore value-packed reels, carousels and get access to exclusive updates on Instagram - www.instagram.com/scaler_official/ 📢 Be a part of our one of a kind telegram community: t.me/Scalercommunity 🔔 Hit that bell icon to get notified of all our new videos 🔔 If you liked this video, please don't forget to like and comment. Never miss out on our exclusive videos to help boost your coding career! Subscribe to Scaler now! youtube.com/Scaler?sub_confirmation=1 #prefixsumalgorithm
2 سال پیش در تاریخ 1401/06/10 منتشر شده است.
7,886 بـار بازدید شده
... بیشتر