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

  • @parthkaushik1473
    @parthkaushik14735 ай бұрын

    Good one

  • @CodingwithBharat

    @CodingwithBharat

    5 ай бұрын

    ✌️

  • @sudhadevi6692
    @sudhadevi66925 ай бұрын

    Thx for the video bhaiya❤

  • @CodingwithBharat

    @CodingwithBharat

    5 ай бұрын

    😁✌️

  • @cinzoop5250
    @cinzoop52504 ай бұрын

    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 🙏

  • @ashutoshtripathi8257
    @ashutoshtripathi82574 ай бұрын

    Good bhaiya ♥️, why did you left Programming pathshala?

  • @kanthichandra898
    @kanthichandra8984 ай бұрын

    Please post all the DSA techniques that are commonly used !

  • @CodingwithBharat

    @CodingwithBharat

    4 ай бұрын

    Yes that is the plan

Келесі