Harizibam VXor of numbers in a given rangeGiven an integer N, find the xor of all numbers from 1 to N.Apr 8Apr 8
Harizibam V136. Single Number in LeetcodeGiven a non-empty array of integers, every element appears twice except for one. Find that single one.Apr 7Apr 7
Harizibam V231. Power of Two in Leetcode (Bit Manipulation)Given an integer, return true if it is a power of two. Otherwise, return false.Apr 7Apr 7
Harizibam V1004. Max Consecutive Ones — III in Leetcode (Two Pointers & Sliding Window)Given a binary array nums and an integer k, return the maximum number of consecutive 1's in the array if you can flip at most k 0's.Apr 6Apr 6
Harizibam V3. Longest Substring Without Repeating Characters in LeetcodeGiven a string s, find the length of the longest substring without repeating characters.Apr 6Apr 6
Harizibam VA. Watermelon — CodeforceOne hot summer day Pete and his friend Billy decided to buy a watermelon. Pete and Billy are great fans of even numbers, that’s why they…Mar 30Mar 30
Harizibam VMaximum Product SubarrayProblem Statement: Given an array that contains both positive and negative integers, the task is to find the product of the maximum product…Mar 27Mar 27
Harizibam VFind the Minimum element in a Sorted and Rotated ArrayProblem Statement: Given a sorted array arr[] (may be distinct or may contain duplicates) of size N that is rotated at some unknown point…Mar 27Mar 27
Harizibam VCount the number of occurrences in a sorted arrayProblem Statement: Given a sorted array arr[] and a number x, write a function that counts the occurrences of x in arr[]. The expected time…Mar 271Mar 271
Harizibam VSubarray with 0 sumHello everyone, We will solve the subarray with 0 sum problem in GFG in this article. The problem states that return “Yes” if the sum of…Mar 24Mar 24