## Find uncommon characters of the two strings | Set 2

Given two strings str1 and str2, the task is to find and print the uncommon characters of the two given strings in sorted order without… Read More »

- Count distinct elements in an array
- Sort the array of strings according to alphabetical order defined by another string
- Check if it is possible to reach a number by making jumps of two given length
- Number of pairs whose sum is a power of 2
- k-th missing element in an unsorted array
- Number of unique pairs in an array
- Count distinct substrings that contain some characters at most k times
- Choose atleast two elements from array such that their GCD is 1 and cost is minimum
- Count of words that are present in all the given sentences
- Count occurrences of a string that can be constructed from another given string
- Minimum length substring with exactly K distinct characters
- Sum of nodes in bottom view of Binary Tree
- Maximum length of the sub-array whose first and last elements are same
- Split the array elements into strictly increasing and decreasing sequence
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Pairs with same Manhattan and Euclidean distance
- Remove all occurrences of any element for maximum array sum
- Number of subarrays such that XOR of one half is equal to the other
- Sum of nodes in top view of binary tree
- Two equal sum segment range queries
- Count of pairs of strings which differ in exactly one position
- Hash Function for String data in C#
- Count of unique pairs (arr[i], arr[j]) such that i < j
- Minimum number of given operations required to convert a permutation into an identity permutation
- Count all elements in the array which appears at least K times after their first occurrence
- Print the first shortest root to leaf path in a Binary Tree
- Minimum changes required to make a Catalan Sequence
- Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
- Maximum GCD of N integers with given product
- Find d to maximize the number of zeros in array c[] created as c[i] = d*a[i] + b[i]

Given two strings str1 and str2, the task is to find and print the uncommon characters of the two given strings in sorted order without… Read More »

Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples: Input: 5 -> 7 -> 5… Read More »

Given two binary strings s and t. The task is to rearrange the string s in such a way that the occurrence of string t… Read More »

Given an array arr[] of N integers. The task is to find the minimum number of given operations required to reduce the array to 0… Read More »

Given a string str containing only lowercase characters. The task is to print the characters having an odd frequency in the order of their occurrence.… Read More »

Given two arrays A and B of N integers. Reorder the elements of B in itself in such a way that the sequence formed by… Read More »

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… Read More »

Given an array of positive integers, remove all the occurrences of element to get the maximum sum of the remaining array Examples: Input : arr… Read More »

Given a string str of lowercase English alphabets and an integer m. The task is to count how many positions are there in the string… Read More »

Given two unsorted arrays arr1[] and arr2[], the task is to find the sum of elements of arr1[] such that number of elements less than… Read More »

Given two arrays x[] and y[] where x[i] represents the x coordinate and y[i] represents the corresponding y coordinate of a 2-D point, the task… Read More »

Given an array of N elements. The task is to split the elements into two arrays say a1[] and a2[] such that one contains strictly… Read More »

Given three arrays a[], b[] and c[] of N elements representing the three sides of N triangles. The task is to find the number of… Read More »

Given a permutation P (P1, P2, P3, … Pn) of first n natural numbers. Find the minimum number of operations to convert it into an… Read More »

Given a person who is at position current_pos and a binary string path which is the moves the person took, if path[i] = ‘0’ then… Read More »