Given a string of bits and a number k. In one flip, you can toggle k consecutive characters, how many flips are required to change the entire string […]
Given a string, print the variation of string as shown below Input String: ‘hat’ Replace one character with numeric one(‘1’): ‘1at‘, ‘h1t‘, ‘ha1‘ Replace two characters with […]
Given two arrays of integers, write a code to check if one is permutation (arranging the same numbers differently) of elements present in the other. […]
Given an array containing both positive and negative integers, write code to rearrange the elements so that positive and negative numbers comes alternately. If positive […]