Topic

Two pointers problems

Two indices moving through an array in one direction, turning a quadratic scan into a linear one.

  • 15 problems
  • Easy5
  • Medium8
  • Hard2
All problems
Trapped Monsoon WaterFunction

বর্ষার জমে থাকা পানি

Two pointersPrefix sumsArraysHardNewFewer than 10 people have tried it
Clean the RegisterFunction

খাতা থেকে ডুপ্লিকেট বাদ

Two pointersArraysEasyNewFewer than 10 people have tried it
Three That Cancel OutFunction

তিনজনে মিলে শূন্য

Two pointersSortingMediumNewFewer than 10 people have tried it
Fewest Boats AcrossFunction

সবচেয়ে কম নৌকায় পার

Two pointersGreedySortingMediumNewFewer than 10 people have tried it
The Smallest Spice WindowFunction

সব মশলার সবচেয়ে ছোট সারি

StringsTwo pointersHashingHardNewFewer than 10 people have tried it
Flip the BannerFunction

ব্যানার উল্টে পড়ো

StringsTwo pointersMediumNewFewer than 10 people have tried it
Squeeze the MessageFunction

মেসেজ ছোট করো

StringsTwo pointersEasyNewFewer than 10 people have tried it
The Longest Fresh RunFunction

রিপিট ছাড়া সবচেয়ে লম্বা টুকরো

StringsTwo pointersHashingMediumNewFewer than 10 people have tried it
Tidy the ShelfFunction

তাক গোছাও

ArraysTwo pointersEasyNewFewer than 10 people have tried it
Water Between WallsFunction

দুই দেয়ালের মাঝে পানি

Two pointersGreedyMediumNewFewer than 10 people have tried it
Reads Both WaysFunction

দুই দিক থেকেই এক

StringsTwo pointersEasyNewFewer than 10 people have tried it
Line Up Backwards

উল্টো লাইন

ArraysTwo pointersEasyNewFewer than 10 people have tried it
One of Each

প্রতিটা একবার

ArraysTwo pointersMediumNewFewer than 10 people have tried it
Von Neumann's Merge

Von Neumann-এর merge

ArraysTwo pointersSortingMediumNewFewer than 10 people have tried it
Spend the Gift Card Exactly

Gift card-এর পুরো টাকা

Two pointersArraysProgsity Weekly #1· DMediumRating 1,100, from Progsity Weekly #1. A contestant rated 1,100 has about an even chance of solving it.NewFewer than 10 people have tried it
Showing 1 to 15 of 15