Single Number

gfg-potd

Given an array arr[] of positive integers where every element appears even times except for one. Find that number occurring an odd

Split the Array

gfg-potd

Given an array arr[] of integers, the task is to count the number of ways to split given array elements into two

1405. Longest Happy String

leetcode-potd

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

Two Swaps

gfg-potd

Given a permutation of some of the first natural numbers in an array arr[], determine if the array can be sorted

Scroll to Top