Monthly Archives: October 2015

Given an array of strings, find if the strings can be chained to form a circle

Given an array of strings, find if the given strings can be chained to form a circle. A string X can be put before another string Y in circle if the last character of X is same as first character … Continue reading

Posted in Information Technology | Leave a comment

Recursively remove all adjacent duplicates

Given a string, recursively remove adjacent duplicate characters from the string. The output string should not have any adjacent duplicates. See the following examples. Input: azxxzy Output: ay First “azxxzy” is reduced to “azzy”. The string “azzy” contains duplicates, so … Continue reading

Posted in Information Technology | Leave a comment

Rearrange characters in a string such that there is no consecutive occurrence of the same character

Rearrange characters in a string such that there is no consecutive occurrence of the same character. Input: aaabc Output: abaca Input: aa Output: No valid output Input: aaaabc Output: No valid output using System; using System.Collections.Generic; using System.Linq; using System.Text; … Continue reading

Posted in Information Technology | Leave a comment

Uttoron Durga Puja 2015, Seattle

Posted in Entertainment, Festival | Leave a comment