home
data-structures-and-algorithms-in-java-interview-prep
text-processing
remove-adjacent
Profile
Logout
Editor
Login
Theme1
Theme2
Theme3
Theme4
Redirecting to
NADOS
Kmp Pattern Searching
Z Algorithm For Pattern Searching
Shortest Palindrome
Manacher's Algorithm
Find String Roots
String Rotation
Prefix And Suffix Count
String Polynomial Hashing
Rabin Karp Pattern Find (spoj)
Password
Good Substrings
Longest Duplicate Substring
Longest Prefix Suffix
Lexicographical Suffixes
Longest Common Substring (2 Strings)
Repeated Substrings - Kattis
Longest Palindromic Substring
Hidden Password - Icpc Regionals
Dfs In Suffix Tree
Sufix Tree - Application 1 - Pattern Find
Suffix Tree - Application 2 - Longest Repeated Substrings
Suffix Tree - Application 3 - Longest Common Substring
Suffix Tree - Dictionary Queries
Aho Corasick - Application
Obscene Words Filter
Substring Problem
Vitaly And Strings
Remove Adjacent
Phoenix And Distribution
Make Palindrome
Wizards And Minimal Spell
Exponential Notation
One More Name
Ab-string
Print 1337 String
String Reversal
Calender
Minimax
Diane
Say No To Palindrome
Codeforces Subsequence
Question
History
Solution
Stats
Remove Adjacent
medium
Prev
Next
Link -> Remove Adjacent
Input Format
check the link
Output Format
check the link
Question Video
Your browser does not support the video tag.
1X
2X
3X
Constraints
check the link
Sample Input
8
bacabcab
Sample Output
4
Asked in Companies
Related Topics
Update Your Profile
Your profile is incomplete!
Please
click here
to complete your profile to continue submitting questions.
Video Solution
Your browser does not support the video tag.
Code Solution
{ }
Editor Settings
Font Size
Key Binding
Keyboard Shortcut
fold
Alt-L|Ctrl-F1
unfold
Alt-Shift-L|Ctrl-Shift-F1
Gotoend
Ctrl-End
Gotostart
Ctrl-Home
Movelinesup
Alt-Up
Movelinesdown
Alt-Down
Undo
Ctrl-Z
Redo
Ctrl-Shift-Z|Ctrl-Y
Replace
Ctrl-H
Togglecomment
Ctrl-/
ToggleBlockComment
Ctrl-Shift-/
Removeline
Ctrl-D
{ }
Run
Editor Settings
Font Size
Key Binding
Keyboard Shortcut
fold
Alt-L|Ctrl-F1
unfold
Alt-Shift-L|Ctrl-Shift-F1
Gotoend
Ctrl-End
Gotostart
Ctrl-Home
Movelinesup
Alt-Up
Movelinesdown
Alt-Down
Undo
Ctrl-Z
Redo
Ctrl-Shift-Z|Ctrl-Y
Replace
Ctrl-H
Togglecomment
Ctrl-/
ToggleBlockComment
Ctrl-Shift-/
Removeline
Ctrl-D
{ }
Run
Editor Settings
Font Size
Key Binding
Keyboard Shortcut
fold
Alt-L|Ctrl-F1
unfold
Alt-Shift-L|Ctrl-Shift-F1
Gotoend
Ctrl-End
Gotostart
Ctrl-Home
Movelinesup
Alt-Up
Movelinesdown
Alt-Down
Undo
Ctrl-Z
Redo
Ctrl-Shift-Z|Ctrl-Y
Replace
Ctrl-H
Togglecomment
Ctrl-/
ToggleBlockComment
Ctrl-Shift-/
Removeline
Ctrl-D
Id
Name