Longest prefix that contains same number of X and Y in an array Content has been removed on Author’s request. Article Tags : ArraysDSA Recommended Articles 1. Print the longest prefix of the given string which is also the suffix of the same string 2. Prefix Factorials of a Prefix Sum Array 3. Check if count of substrings in S with string S1 as prefix and S2 as suffix is equal to that with S2 as prefix and S1 as suffix 4. Maximum sum increasing subsequence from a prefix and a given element after prefix is must 5. Maximum prefix sum which is equal to suffix sum such that prefix and suffix do not overlap 6. Construct an Array of Strings having Longest Common Prefix specified by the given Array 7. Maximize deletions by removing prefix and suffix of Array with same sum 8. Length of array pair formed where one contains all distinct elements and other all same elements 9. Longest string in an array which matches with prefix of the given string 10. Length of longest common prefix possible by rearranging strings in a given array 11. Pair of strings having longest common prefix of maximum length in given array 12. Queries to find the length of the longest prefix from given array having all elements divisible by K 13. Length of the longest substring that contains even number of vowels 14. Probability such that two subset contains same number of elements 15. Count number of ways array can be partitioned such that same numbers are present in same subarray 16. Longest palindromic string formed by concatenation of prefix and suffix of a string 17. Find the longest sub-string which is prefix, suffix and also present inside the string 18. Find the longest sub-string which is prefix, suffix and also present inside the string | Set 2 19. Longest Palindrome in a String formed by concatenating its prefix and suffix 20. Longest Common Prefix using Divide and Conquer Algorithm 21. Count permutations whose prefix & suffix AND are same for each index 22. Bitwise XOR of same indexed array elements after rearranging an array to make XOR of same indexed elements of two arrays equal 23. Longest Common Prefix using Linked List 24. Longest Common Prefix Matching | Set-6 25. Find the longest common prefix between two strings after performing swaps on second string