1545. Find Kth Bit in Nth Binary String
Given two positive integers n and k, the binary string Sn is formed as follows: S1 = “0” Si = Si – 1 + “1” […]
Given two positive integers n and k, the binary string Sn is formed as follows: S1 = “0” Si = Si – 1 + “1” […]
Given an integer array nums, find the maximum possible bitwise OR of a subset of nums and return the number of different non-empty subsets with the maximum bitwise OR. An
A string str is given to represent a positive number. The task is to round str to the nearest multiple of 10.
Given an array arr[] of positive integers where every element appears even times except for one. Find that number occurring an odd
Given an array arr[] of integers, the task is to count the number of ways to split given array elements into two
A boolean expression is an expression that evaluates to either true or false. It can be in one of the following shapes: ‘t’ that evaluates to true.
Given a doubly linked list, each node is at most k-indices away from its target position. The problem is to
You are given an integer num. You can swap two digits at most once to get the maximum valued number. Return the
Given a singly linked list’s head. Your task is to complete the function alternatingSplitList() that splits the given linked list into two smaller lists.
A string s is called happy if it satisfies the following conditions: s only contains the letters ‘a’, ‘b’, and ‘c’. s does not contain any of “aaa”, “bbb”, or “ccc” as a
There are n balls on a table, each ball has a color black or white. You are given a 0-indexed binary string s of length n, where 1 and 0 represent