u/Helpful_Judgment_374

▲ 5 r/NPTEL

Introduction to Haskell: Course Review

Since I couldn't find much info online, here's a brief summary of the course:

It's hard. If your goal is to get maximum marks possible then I recommend choosing any other subject tbh. The syllabus is wide and it covers basic Haskell and then moves on to Data Structures: AVL, Binary Trees, Heaps and also Algorithms like DP. The assignment also had a bunch of programming questions too where they compared your output to the actual answer. Honestly I liked these assignments more as I got to actually practice and get feedback immediately.

The exam didn't have any questions directly from assignment. It was mostly just MCQs and Fill in the Blanks. I would recommend practicing how to define and infer types of functions. Use Gemini to generate Flash Cards and just grind them through.

Also a lot of questions were Fill in the Blanks, input/output. Like given a function predict the output. It was mostly okay but one part it really tripped me up was something like this

f = 0 : [x + y | x <- f, y <- [2..]]

and you had to predict the 11th,13th element of this (aka output of f!!10, f!!14)

Also do learn the syntaxes properly. There were a couple of problems that were straightforward like what's the bounds of listArray ('a','z') [0..].

Anyways that's all I wanted to share. adios!

reddit.com
u/Helpful_Judgment_374 — 5 days ago