๐Ÿ› ๏ธ Steven Gong

Search

SearchSearch
  • Difference Array
  • Related
Sep 07, 2024 ยท 1 min read ยท 17 views ยท 0 in the last 30 days

Where readers are reading from

FijiTanzaniaWestern SaharaCanada ยท 0 readersUnited States of America ยท 0 readersKazakhstanUzbekistanPapua New GuineaIndonesiaArgentinaChileDemocratic Republic of the CongoSomaliaKenyaSudanChadHaitiDominican RepublicRussiaThe BahamasFalkland IslandsNorwayGreenlandFrench Southern and Antarctic LandsEast TimorSouth AfricaLesothoMexicoUruguayBrazilBoliviaPeruColombiaPanamaCosta RicaNicaraguaHondurasEl SalvadorGuatemalaBelizeVenezuelaGuyanaSurinameFranceEcuadorPuerto RicoJamaicaCubaZimbabweBotswanaNamibiaSenegalMaliMauritaniaBeninNigerNigeriaCameroonTogoGhanaIvory CoastGuineaGuinea-BissauLiberiaSierra LeoneBurkina FasoCentral African RepublicRepublic of the CongoGabonEquatorial GuineaZambiaMalawiMozambiqueEswatiniAngolaBurundiIsraelLebanonMadagascarPalestineThe GambiaTunisiaAlgeriaJordanUnited Arab EmiratesQatarKuwaitIraqOmanVanuatuCambodiaThailandLaosMyanmarVietnamNorth KoreaSouth KoreaMongoliaIndia ยท 0 readersBangladeshBhutanNepalPakistanAfghanistanTajikistanKyrgyzstanTurkmenistanIranSyriaArmeniaSwedenBelarusUkrainePolandAustriaHungaryMoldovaRomaniaLithuaniaLatviaEstoniaGermanyBulgariaGreeceTurkeyAlbaniaCroatiaSwitzerlandLuxembourgBelgiumNetherlandsPortugalSpainIrelandNew CaledoniaSolomon IslandsNew ZealandAustraliaSri LankaPeople's Republic of China ยท 0 readersTaiwanItalyDenmarkUnited KingdomIcelandAzerbaijanGeorgiaPhilippinesMalaysiaBruneiSloveniaFinlandSlovakiaCzech RepublicEritreaJapanParaguayYemenSaudi ArabiaTurkish Republic of Northern CyprusCyprusMoroccoEgyptLibyaEthiopiaDjiboutiSomalilandUgandaRwandaBosnia and HerzegovinaNorth MacedoniaSerbiaMontenegroKosovoTrinidad and TobagoSouth SudanSelect a country to explore ยท Last 30 days
Singapore0
Canada0
United States0
China0
India0
Traffic ยท last 30 days000Oct 10Oct 20Oct 30Nov 8
views
Traffic ยท all time122Sep 7Sep 10Sep 13Sep 16Sep 18
views

Difference Array

Used to do O(1) range updates.

Wow, very cool, I ran into this problem for the first time through https://dmoj.ca/problem/bts24p2 https://www.geeksforgeeks.org/difference-array-range-update-query-o1/

Use it in combination with Prefix Array.

Related

  • Prefix Array

Graph View

Backlinks

  • Prefix Array

Created with Quartz, ยฉ 2026

  • Blog
  • LinkedIn
  • Twitter
  • GitHub