Coding Interview Patterns Prefix Sum - Optimising Queries
This is the second video in Series of Patterns we encounter during Leetcode Weekly and Biweekly Contests.
In this video, we cover Prefix Sum Technique - A Versatile Algorithm which helps in optimising queries. This technique can be used not just with sum but any operator which is invertible like Multiply, XOR, etc.
Problems to practice
Closest Cities: codeforces.com/contest/1922/p...
Number if subarrays with odd sum: leetcode.com/problems/number-...
Connect on Insta: / bharatkhanna1995
Connect on Linkedin: / bharat-khanna-717b4817b
00:00-4:30 Range Query Sum Problem & Brute Force
4:31-5:22 Cumulative/Prefix Sum Concept
5:23-8:29 Using this concept for optimising range queries
8:30-11:46 Closest Cities Problem
11:47-12:26 Brute Force Solution
12:27-17:27 How Prefix sum can help optimise?
Пікірлер: 8
Good one
@CodingwithBharat
5 ай бұрын
✌️
Thx for the video bhaiya❤
@CodingwithBharat
5 ай бұрын
😁✌️
Please create a playlist on prefix suffix techniques bcoz it's not on yt, if you can't create a playlist atleast create a video with 4 5 problems solved and contains around 10 problem links to practice, please a humble request 🙏
Good bhaiya ♥️, why did you left Programming pathshala?
Please post all the DSA techniques that are commonly used !
@CodingwithBharat
4 ай бұрын
Yes that is the plan