Palindromex
2227D1200· pupil2s256 MB⌨ stdin/stdout
#binary search#brute force#constructive algorithms#data structures#greedy#implementation#two pointers
Examples
Sample 1of 1multi-test • hover to link
Input
641 2 0 3 3 0 2 120 1 0 121 1 0 032 0 2 1 1 040 1 3 0 3 1 2 230 1 2 1 0 2
Output
421123
58%
2227D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)