Message from C, C++ discussions

December 2019

— I understand that in c++ we have functional stuff (lambda functions)

— 

But seems like they’re not as flexible to use as in scale (in which we can call a chain of lambda functions in a line)

— Or there’s some libraries I can look into?

— Like in scala we can do map then flatten then filter etc in one line.

— In c++ it seems unable :(

— Which doesn’t make it as a strong motivation for me to change in habit of writing my code from being imperative to being functional

Message permanent page

— Another one bites the dust...!
Banned RAVAANA.
Reason:
what the fuck. Get out from here.

— Given an array, I have to arrange in such a way that all the odd numbers are arranged in ascending order on one side of the array and the remains, i.e. even numbers are arranged in descending order.... How do I approach this?

Message permanent page

— For eg... 5 8 1 7 2 6 4 should give the output as 1 5 7 8 6 4 2

— Https://pastebin.com/CMtgWBWs

Check it

— Built in function is used here.... Can it be done using quicksort?

— You need a partition algorithm and then two sorting algorithms