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 » Longest subsegment of ‘1’s formed by changing at most k ‘0’s | Set 2 (Using Queue)
Blog

Longest subsegment of ‘1’s formed by changing at most k ‘0’s | Set 2 (Using Queue)

by Rubin|Published December 23, 2021

Given a binary array a[] and a number k, we need to find the length of the longest subsegment of ‘1’s possible by changing at… Read More

The post Longest subsegment of ‘1’s formed by changing at most k ‘0’s | Set 2 (Using Queue) appeared first on GeeksforGeeks.

You may also like

Forcing browser caching on custom controller
Published February 2, 2024

Forcing browser caching on custom controller

I have a custom controller with this code: use MagentoFrameworkAppActionHttpGetActionInterface; use MagentoFrameworkAppResponseHttpFactory; use MagentoFrameworkAppResponseInterface; use MagentoFrameworkControllerResultInterface; use MagentoFrameworkExceptionNotFoundException; use MagentoFrameworkViewElementTemplate; use MagentoFrameworkViewResultPageFactory; […]

Magento 1.9.2.4 search doesn’t work for certain terms
Published March 3, 2022

Magento 1.9.2.4 search doesn’t work for certain terms

My store’s search seems to be working for some terms and not for others. For example: mywebsite.net/catalogsearch/result/?q=dilatex works, whereas mywebsite.net/catalogsearch/result/?q=creatine simply stays […]

Published March 26, 2020

How to Debug a Node.js Application: Tips, Tricks and Tools

Software development is complex and, at some point, your Node.js application will fail. If you’re lucky, your code will crash with an […]

Why does Windows Explorer change the ‘Folder Modify Time’ when first accessing a folder after a robocopy?
Published December 11, 2021

Why does Windows Explorer change the ‘Folder Modify Time’ when first accessing a folder after a robocopy?

I am attempting to use Robocopy to mirror a directory structure (/e) and keep created/modified/accessed times. This should be fairly simple with […]

Interesting

  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
  • Is this the best way to rename multiple files in a Window folder using PowerShell?
  • When should I be using a fan controller over the ones on the motherboard?
  • Windows 11 taskbar search keeps loading forever and never shows results

Post navigation

  • Previous post Most universal/basic fixed width / mono font to use for emails for cross platform compatibility with formatting retention?
  • Back to post list
  • Next post Maximum count of pairs such that element at each index i is included in i pairs
——————-
  • Trying to understand TrueNAS filename order. Files were created in numerical order, then why does the file list show up in random order? [closed]
  • Why does the run dialog opens my C drive for my custom variable %test%, but with %temp% it works?
  • Are these burn marks on my motherboard?
  • What could explain Windows PowerShell taking over one hour to load?
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
——————-
  • 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