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 » Kth smallest positive integer Y such that its sum with X is same as its bitwise OR with X
Blog

Kth smallest positive integer Y such that its sum with X is same as its bitwise OR with X

by Rubin|Published August 30, 2021

Given two positive integers X and K, the task is to find the Kth smallest positive integer (Y) such that the sum of X and… Read More

The post Kth smallest positive integer Y such that its sum with X is same as its bitwise OR with X appeared first on GeeksforGeeks.

You may also like

What are some legitimate ways to find publicly available contact information associated with a Gmail address and Apple ID? [closed]
Published November 8, 2026

What are some legitimate ways to find publicly available contact information associated with a Gmail address and Apple ID? [closed]

I’m curious about how online identity and account connections work. If someone has a Gmail address that is also used as their […]

Magento 2 filter category by id in category tree
Published August 13, 2021

Magento 2 filter category by id in category tree

I’m overriding this default block file and need to filter the category by id. MagentoThemeBlockHtmlTopmenu how to addFieldToFilter to this children protected […]

How to stop the Windows 11 KB5094126 installation loop and safely upgrade from March baseline risk-free?
Published July 21, 2026

How to stop the Windows 11 KB5094126 installation loop and safely upgrade from March baseline risk-free?

I need some advice regarding a persistent Windows Update installation loop affecting my machine. My system is currently on a March baseline […]

Shipping confirmation mail is sent to multiple customers
Published September 30, 2022

Shipping confirmation mail is sent to multiple customers

Magento 2.3.5-p2 This is whats happening: shipment is created and shipment mail is sent to rightcustomer@example.com mail is sent to rightcustomer@example.com again […]

Interesting

  • 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
  • OS drive image-level backup software with exclusion of files and folders [closed]
  • How can I set a hard cost limit for a single request in GitHub Copilot desktop app?
  • How do I get back db_ddladmin rights lost due to server replication?
  • Audio popping after idle on Dell Pro Max 16 MC16250 – where are the idle power settings in registry?

Post navigation

  • Previous post How to set up a backwards reverse http proxy
  • Back to post list
  • Next post Maximum sum of values of N items in 0-1 Knapsack by reducing weight of at most K items in half
——————-
  • 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
  • OS drive image-level backup software with exclusion of files and folders [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