Skip to main content

All Questions

26votes
3answers
2kviews

Project Euler Problem 2 in Clojure

I am in the process of learning Clojure. I am fairly new to functional programming and would like to know if my code smells or if there are any performance implications with my approach. ...
Jeremy's user avatar
8votes
1answer
888views

"Curious Numbers" (HackerRank PE 34)

I was inspired by a certain recent question to try my hand at this challenge: Project Euler #34: Digit factorials \$19!\$ is a curious number, as \$1!+9!=1+362880=362881\$ is divisible by \$19\$. ...
Phrancis's user avatar
6votes
3answers
298views

Number of Chocolates to Gluttonize in Clojure

I’ve been dabbling in Clojure by solving programming puzzles. This particular puzzle is from HackerRank, with the objective of figuring out how much chocolate one could eat given three parameters: ...
Thomas Sobieck's user avatar
4votes
2answers
88views

Project Euler #3

I'd like to have the code below reviewed on all aspects. Task: Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? My ...
skiwi's user avatar
  • 10.7k
4votes
1answer
132views

Project Euler #1

I'm learning Clojure and solved Project Euler #1, I'd like to have my code reviewed on all aspects and have one specific question. This is also my first Functional Programming language, I have however ...
skiwi's user avatar
  • 10.7k
3votes
1answer
285views

Solving Knight's Travails Problem without using vector for position

I'm trying to implement a solution to the The Odin Project - Project 2: Knight’s Travails in Clojure (Functional Programming) based on the solution posted by benjdelt. I would like to know your ...
Vasco Ferreira's user avatar
3votes
2answers
173views

Project Euler #11 - Largest product in a grid

Problem statement I've tried to solve the following Euler problem in a very straight-forward way, ideally avoiding recursion if possible and writing it in a functional style. What is the greatest ...
skiwi's user avatar
  • 10.7k
2votes
1answer
174views

Project Euler #1 - Revisited

I'm learning Clojure and solved Project Euler #1, I'd like to have my code reviewed on all aspects. I'm marking this as follow-up of Project Euler #1 because I answered my own question and implemented ...
skiwi's user avatar
  • 10.7k
1vote
1answer
127views

Project Euler #6 - Sum square difference

I'd like to get the code below reviewed on all aspects, specifically I wonder if it's common usage to use let like this, as currently more computations are done in ...
skiwi's user avatar
  • 10.7k

close