Size: a a a

2020 October 16

S

Snusmumriken in pro.lua
Prathmesh Raut
But here input in one line how to do
I've already written all this.
источник

PR

Prathmesh Raut in pro.lua
Okay thx
источник

f

fgntfg in pro.lua
What is next? You will come with next task from codedef?
источник

f

fgntfg in pro.lua
Хмм, я придумал страшно не эффективный алгоритм поиска максимума.
источник

f

fgntfg in pro.lua
Придет ещё раз - напишу такой код, что плакать захочется. O(n!) или что-то типа того.
источник

S

Snusmumriken in pro.lua
Топово
источник

S

Snusmumriken in pro.lua
Будем закидывать их предельно неэффективными решениями
источник

S

Snusmumriken in pro.lua
Мой вариант с FFI вон память жрёт без необходимости.
источник

<

<< En3rgy Drag... in pro.lua
А что такое асинхронность?
источник

S

Snusmumriken in pro.lua
<< En3rgy Drag0n >>
А что такое асинхронность?
Это когда несколько функций поочерёдно выполняются по кусочкам, потом ставятся на паузу и переходят к следующим. И так пока не будут выполнены.
источник

f

fgntfg in pro.lua
Ммм, поиск максимума на корутинах
источник

S

Snusmumriken in pro.lua
Ну, простейший аналог корутины — это какая-нибудь структура типа

local task = {}
function task:isDone()
 ...
 if a an b and c then
   return result
 end
end
Ближе к конечным автоматам, но тоже работает и может поражать асинхронностью. Правда, сам код в isDone приходится писать не прямо, а через задницу, как для конечного автомата.
источник

AN

Anton Noginov in pro.lua
fgntfg
Ммм, поиск максимума на корутинах
Мультитредовый пузырек
источник

S

Snusmumriken in pro.lua
Anton Noginov
Мультитредовый пузырек
На GPU
источник

AN

Anton Noginov in pro.lua
Мап-редьюснутый.
источник

PR

Prathmesh Raut in pro.lua
Given a string strstr, check if its a palindrome. Consider it to be case insensitive.
A palindrome string is a sequence of characters that reads the same forwards and backwards.
If strstr is found to be a palindrome, print
It is a palindrome
else print
It is not a palindrome
The code stub provided here is to be used. It calls the function palindrome(). Your task is to complete the function.

Input:

First line will contain TT, number of testcases. Then the testcases follow.

Each testcase contains a single string strstr

Output:

For each testcase, print the output on new line

Constraints

1≤T≤251≤T≤25

2≤length(str)≤1002≤length(str)≤100

strstr may contain alphanumeric characters

Subtasks

Subtask #1 (30 points): T≤5T≤5 and length(str)≤70length(str)≤70
Subtask #2 (70 points): original constraints

Sample Input:

3
AhheioIehHA
OeaiensneIaIeO
wieowppwoeiw

Sample Output:

It is a palindrome
It is not a palindrome
It is a palindrome

Explanation:

The first test case is considered a palindrome since it reads the same forwards or backwards. The capital and lowercase version of the same is considered equivalent as it is mentioned to be case insensitive.
The second test case is not a palindrome since its third character does not match the third character from back.
The third test case is again a palindrome.
источник

PR

Prathmesh Raut in pro.lua
How to solve palindrome by ignoring upper and lower case
источник

PR

Prathmesh Raut in pro.lua
Help me plz
источник

PR

Prathmesh Raut in pro.lua
Heyy plz....i know how solved palindrome but how ignore upper and lower cases
источник

S

Snusmumriken in pro.lua
Prathmesh Raut
Heyy plz....i know how solved palindrome but how ignore upper and lower cases
string.lower and string.upper.
источник