Feed Post

Question: What is the output of the following Kotlin code snippet? fun main() { val list = mutableListOf(1, 2, 3, 4, 5) val result = list.fold(5) { acc, num -> acc * num } println(result) }

Havish Gupta

Stealth • 6m

It should be 625, an educated guess. I used the same technique to guess this answer that i used in my exams 🔥

0 replies2 likes

More like this

Recommendations from Medial

Image Description
Image Description

Om Raut

Stealth • 5m

🔥🔥Hey Guys !!! 📌Just saw a sign on a building So I guess I'm already hired ??

7 replies29 likes
1
Image Description
Image Description

Abhijit Jha

Stealth • 6m

What do you think WW3 is near? (Should I prepare for my exams?)

10 replies12 likes
Anonymous
Image Description
Image Description

I got bad marks in all entrance exams now Should I take a drop year or should I just join a random college

15 replies7 likes
Image Description
Image Description

ratan

Stealth • 4m

I have a high liking for this platform and often wonder the reason behind this. And I guess I have an answer, that is:- FAMILIARITY I love this platform and the sole reason being, the environment shared by like minded people, who value ideas, prob

See More
3 replies4 likes
Image Description
Image Description

Rajan Paswan

Stealth • 4m

What key role should a founder hire in the initial stages of a startup? Answer: Pick any sector or domain of your choice and provide an answer relevant to that.

7 replies6 likes
Image Description

lince P

Stealth • 1m

I have an idea. an online written mock exam for school students and engineering and medical students. We work like real exam conductors. we evaluate written exams. Daily we conduct exams. how's it? I hope it will be very helpful to students. if you l

See More
1 replies4 likes
Image Description
Image Description

Krish Jaiman

Stealth • 3m

Hi startup founders ,I wanted to ask something .Please help me with this. If I have an idea for a startup,what should be my first step? Should I start building it's prototype?How should I approach to VCs for funding? How can I contact them? Please an

See More
11 replies9 likes
1
Anonymous

I think medial should have a ai , which could answer everything in terms of business, some general legal questions, give us case studies, suggest resources etc. not like every other ai, it should be like business ai , which is very smart and knows s

See More
0 replies1 like
Anonymous
Image Description
Image Description

SHOULD I launch 2 startups at the same time? I think i SHOULD. I will have no life, no relationship, no rest. Challenge Accepted!!!

83 replies30 likes
5
Image Description

Abh code

Stealth • 4m

College exams vs skill development I really get excited to work on my skills when there is an exam 😂! While(true) true++;

1 replies2 likes

Download the medial app to read full posts, comements and news.