lambda-study-group / hacker-rank Goto Github PK
View Code? Open in Web Editor NEWFunctional Path do hacker Rank
Functional Path do hacker Rank
We are solving functional programming exercises together, you can help us by sending some solutions from the hacker-rank's functional programming path in any of theses languages:
Also, you can join our study group: https://t.me/joinchat/CW_t_UBMQLKQ1sEcnQHRxg
Happy Hacking! ๐ ๐ ๐ป
Hey people, I don't know if this is the best place to post it, but let's see :)
I am stucked on the Reverse a List problem.
I tried 2 different Clojure solutions:
1. defining a function
(defn rest-from-last
[list]
(take (- (count list) 1) list))
(defn reverse-a-list
[list]
(println (last list))
(if (not-empty (rest-from-last list))
(reverse-a-list (rest-from-last list))))
2. with a anonymous function
(defn rest-from-last
[list]
(take (- (count list) 1) list))
(fn [lst]
(loop [list lst]
(println (last list))
(if (not-empty (rest-from-last list))
(recur (rest-from-last list)))))
But I didn't get the right solution. Any advice for this problem?
We are solving functional programming exercises together, you can help us by sending some solutions from the hacker-rank's functional programming path in any of theses languages:
Happy Hacking! ๐ ๐ ๐ป
We are resolving functional programming exercises together, you can help us by sending some solutions from the hacker-rank's functional programming path in any of theses languages:
Also, you can join our study group: https://t.me/joinchat/CW_t_UBMQLKQ1sEcnQHRxg
Happy Hacking! ๐ ๐ ๐ป
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.