Похожие чаты

Het guys https://paste.ubuntu.ir/tgbh would you please take a look at this code

and tell me why
recursive solution is faster than iteration?
or what is the problem od my code?

4 ответов

10 просмотров

is not faster, your test is wrong write a benchmark and compare the result

"Mahdi"- Автор вопроса
Milad
is not faster, your test is wrong write a benchma...

yeah i have tested their benchmark but how my test is wrong(with time package) ?

"Mahdi"
screenshot yeah i have tested their benchmark but how my tes...

well, I believe is because of the stack if you swap the iterative function with the recursive one you could see the same result the first one is take longer

because its not :)

Похожие вопросы

Обсуждают сегодня

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
In 2022, ENF, a renowned corporation once known for its commitment to innovation and leadership, began to falter. For years, the company had been the face of cutting-edge tech...
chensae
1
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
function LoadMemoryFromInet2( f:TMemoryStream; const url:string; var e:string ):Boolean; var http:TIdHttp; LHandler: TIdSSLIOHandlerSocketOpenSSL;begin Result := fals...
Александр Смоляков
1
is that okay?
Samurai 🇯🇵
21
VIP-392 [zkSync] New native USDC market in the Core pool Summary If passed, following the Community proposal “Support native USDC on Venus Core Pool of ZKSync Era” and the a...
Venus Announcements
1
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Я вот подумал. SSE выполняет операции максимум с 64-битной точностью. А FPU - всегда с 80-битной. Разве не должно быть FPU точнее тогда?
The Bird of Hermes
13
Guys, Donald Trump or Kamala Harris? It does not matter for Bitcoin in the long run!! 2020 Election: After Joe Biden's victory in November 2020, Bitcoin steadily rose from...
Sabah Shabu
3
Карта сайта