Ghoul, so confusing
seen from United States

seen from Oman
seen from Libya
seen from United States

seen from Sweden

seen from United States
seen from Netherlands
seen from Norway

seen from Singapore
seen from Türkiye

seen from Malaysia

seen from Malaysia

seen from Malaysia

seen from United States
seen from United States
seen from United States

seen from Malaysia

seen from United States
seen from China
seen from Malaysia
Ghoul, so confusing
Im not an object show fan
@twosnails4eva
and Kayla
. * somewhat unfinished ( guzma belongs to pokemon company , oc on the left belongs to @poisonmonoxide )
( original character (right) belongs to chaotic-crows on artfight - character on left belongs to SEGA / Nelvana , but is basically mine atp bc they stopped using him in 2008 .
Bakugan belongs to SEGA Toys / Spinmaster / Nelvana . )
I finally decided to change my layout for a change of pace and now I can’t stop looking at it without dying in feels WHY DID I DO THIS TO MYSELF
Longest 2 character substring
Given a string find the longest substring that has only 2 characters.
Solution: This problem is extension of the problem where given a string we have to find the longest substring that has only one character. For finding the longest single character substring, we keep 2 variables one to keep track of longest substring so far and other to count the frequency of current longest substring candidate. Similarly to find the longest 2 character substring we keep 3 variables, two to keep track of longest substring so far and current candidate like the single character problem, the third variable is used to track the frequency of last character. Following c++ implementation is self explanatory:
https://gist.github.com/nirvana-attained/7433191
Analysis: Worst case time complexity is O(n) when n is the length of string. Space complexity is O(1).