Get Mystery Box with random crypto!

Codeforces solution

Logo of telegram channel getcode1 — Codeforces solution C
Logo of telegram channel getcode1 — Codeforces solution
Channel address: @getcode1
Categories: Education
Language: English
Subscribers: 4

Ratings & Reviews

3.67

3 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

2

4 stars

0

3 stars

0

2 stars

0

1 stars

1


The latest Messages 33

2021-12-17 05:46:55 Tomorrow Epam solutions group--

http://t.me/getanswers1
http://t.me/getanswers1
http://t.me/getanswers1
http://t.me/getanswers1

Epam pattern :
1) 10 aptitude question for 15 min
2) 2 coding question
3) 10 english question
4)10 reasoning question
617 viewsedited  02:46
Open / Comment
2021-12-16 16:35:30 Tomorrow Epam solutions group--

http://t.me/getanswers1
http://t.me/getanswers1
http://t.me/getanswers1
http://t.me/getanswers1

Epam pattern :
1) 10 aptitude question for 15 min
2) 2 coding question
3) 10 english question
4)10 reasoning question
841 viewsedited  13:35
Open / Comment
2021-12-16 16:31:51 Epam pattern :
1) 10 aptitude question for 15 min
2) 2 coding question
3) 10 english question
4)10 reasoning question

Join
t.me/getcode1
788 viewsedited  13:31
Open / Comment
2021-12-16 15:32:27 EPAM EXAM TOMORROW SOLUTION GROUP


t.me/getanswers1
t.me/getanswers1
t.me/getanswers1
757 views12:32
Open / Comment
2021-12-16 14:10:25 LTI EXAM 5PM DISCUSSION GROUP



t.me/getcode1
811 views11:10
Open / Comment
2021-12-16 10:45:36
def swaps(s, n):
s = list(s)
count = 0
ans = True
for i in range(n // 2):
left = i
right = n - left - 1
while left < right:
if s[left] == s[right]:
break
else:
right -= 1
if left == right:
ans = False
break
else:
for j in range(right, n - left - 1):
(s[j], s[j + 1]) = (s[j + 1], s[j])
count += 1
if ans:
return (count)
else:
return -1
s = input()
n = len(s)
ans1 =swaps(s, n)
ans2 = swaps(s[::-1], n)
print(max(ans1, ans2))



Language:python
Join
t.me/getcode1
265 views07:45
Open / Comment
2021-12-16 10:13:51
Largest even length wors
Language:python
Join
t.me/getcode1
322 views07:13
Open / Comment
2021-12-16 06:56:05 TODAY LTI and Tcs 10.A.M exam

https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
579 views03:56
Open / Comment
2021-12-16 06:45:00 LTI and Tcs exam group

https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
614 viewsedited  03:45
Open / Comment
2021-12-16 06:24:23 LTI and Tcs exam group

https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
https://t.me/getanswers1
649 viewsedited  03:24
Open / Comment