All Questions
Tagged with programming-challengefunctional-programming
8 questions with no upvoted or accepted answers
4votes
0answers
216views
GeekTrust: Traffic problem - functional programming
First attempt to write functional programming, been following OO paradigm all through my programming journey Please review the code and let me know if any comments and violations of functional ...
3votes
0answers
196views
Advent of Code 2021, Day 3 in Haskell
This is a working solution to today's Advent of Code puzzle, written in Haskell. However, I feel like this solution is not optimal. ...
3votes
0answers
114views
Advent of Code 2017 Day 3 (part 1) in Functional Programming (FP)
I wanted to practice functional programming (FP) without using any library but using vanilla JS only. So I took a problem from Advent of Code. https://adventofcode.com/2017/day/3 You come across an ...
2votes
0answers
116views
Partial Function composability in Haskell
Below is my solution for the CTFP chapter 4 challenges which essentially involves composing partial functions (that don't have defined outputs for all possible inputs i.e. returning a Maybe). The ...
2votes
0answers
733views
Determine whether there exists a one-to-one character mapping from one string to another
The task Determine whether there exists a one-to-one character mapping from one string s1 to another s2. For example, given s1 = abc and s2 = bcd, return true since we can map a to b, b to c, and c ...
2votes
0answers
142views
Advent of Code 2017 Day 6 (part 2) in Functional Programming (FP)
I wanted to practice functional programming (FP) without using any library but using vanilla JS only. So I took a problem from Advent of Code (the 2nd part of Day 6). You can only access the 2nd part ...
1vote
0answers
350views
Sort a list using a reverse helper function
The task: Given a list, sort it using this method: reverse(lst, i, j), which reverses lst from ...
1vote
0answers
497views
Fetching weather data from API
I was experimenting with some code to fetch the current weather data as well as getting the hourly forecast. I could have done ...