Given a non-empty array of integers, every element appears twice except for one. Find that single one. Input_1:Enter the array elements : 1 2 3…
Find the duplicate letters in string. Same to do in dictionary way. Input_1:Enter a String : fcukthecodeOutput:fcuktheod Input_2:Enter a String : programmingOutput:programin Input_3:Enter a String…
Given two strings str1 and str2 and below operations that can performed on str1. Find minimum number of edits (operations) required to convert ‘str1’ into…
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit(6…