Skip to content
Rubin Shrestha
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
  • Search
Rubin Shrestha
  • Search
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
Home » Blog » Maximum length of consecutive 1s or 0s after flipping at most K characters
Blog

Maximum length of consecutive 1s or 0s after flipping at most K characters

by Rubin|Published October 16, 2021

Given a binary string S of size N and an integer K, the task is to find the maximum length of consecutive 1s or 0s… Read More

The post Maximum length of consecutive 1s or 0s after flipping at most K characters appeared first on GeeksforGeeks.

You may also like

Published December 15, 2025

How to go from partitioned HDD to mdadm RAID to an LVM?

The setup is intended for a home lab. “Just throw more money at it and buy bigger HDDs” is not an option. […]

Find expected swaps to sort given Array where probability of swapping any inversion pair is equal
Published October 26, 2021

Find expected swaps to sort given Array where probability of swapping any inversion pair is equal

Given an array arr[] consisting of permutation of the first N natural numbers, the task is to find the expected number of […]

know suitable server package
Published June 30, 2025

know suitable server package

I have a Magento website whose size ranges from 10–11 GB when compressed. Currently, I’m using this VDS server package: 10 Physical […]

Thunderbird 115 Supernova opening window
Published January 27, 2025

Thunderbird 115 Supernova opening window

Ever since I upgraded (in place) TB to 115, when I close it out, a browser window (a TB browser window) opens […]

Interesting

  • vnstat seems to only read config on initial start
  • FFmpeg live encoding with fixed 6s latency buffer (SDI to libx264 to ASI)
  • Disable incoming IP addresses without DNs resolution in apache using fail2ban without HostnameLookups
  • Router Access methods and technological flaw research [closed]
  • How to use youtube without breaking mdm scalefusion on laptop [closed]
  • What are some legitimate ways to find publicly available contact information associated with a Gmail address and Apple ID? [closed]
  • uncensored AI and master prompt commands
  • How can I search GitHub Copilot Desktop chat history for sessions containing both specific text and an image?

Post navigation

  • Previous post Created a “Standard Account” yet able to access all admin files [MACOS]
  • Back to post list
  • Next post Minimum operations to convert Binary Matrix A to B by flipping submatrix of size K
——————-
  • vnstat seems to only read config on initial start
  • FFmpeg live encoding with fixed 6s latency buffer (SDI to libx264 to ASI)
  • Disable incoming IP addresses without DNs resolution in apache using fail2ban without HostnameLookups
  • Router Access methods and technological flaw research [closed]
  • How to use youtube without breaking mdm scalefusion on laptop [closed]
——————-
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
——————-
  • Blog
  • Contact
  • Nepali Typing | Nepali Unicode | English to Nepali | English Conversion | English Translate | नेपाली to English | नेपाली टाईपिङ
  • Occasional Photography
    • The desert that everybody loves in pictures
  • Photography
  • Rubin Shrestha

© 2026 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme