Find Jobs
Hire Freelancers

Elixir Programming

$30-250 CAD

Lukket
Slået op næsten 3 år siden

$30-250 CAD

Betales ved levering
Create an Elixir source file called Lab4.ex. In this file you will define a module named Lab4. For the problems below, you will implement tail recursive functions. You must implement your own tail recursive functions. No built-in shortcuts, no indexing, no iteration. Your functions must call themselves in some recursive fashion. Unless otherwise specified, input lists may contain any combination of types, and be of arbitrary length. Assume nothing! i) sumEven – Return the sum of all even integers in an input list. ii) sumNum – Returns the sum of all numeric values in the list. iii) tailFib – accepts an integer argument, n, and returns the nth Fibonacci number. Assume the first two Fibonacci numbers are 1 and 1. That is, tailFib(1) == 1, tailFib(2) == 1. There is no tailFib(0). Your tail-recursive implementation must avoid the double recursive call. No O(2n)! iv) reduce – Consider [login to view URL] from this week’s lecture. [login to view URL] will build on this. You will add an implementation that handles the optional 3rd argument to initialize acc. For example – the following two examples, exactly as written, should work correctly: [login to view URL]([1, 2, 3], fn(x, acc) -> x+acc end) [login to view URL]([1, 2, 3], 10, fn(x, acc) -> x+acc end) You may use helper functions if you wish, so long as the user can invoke your function as seen above.
Projekt-ID: 30430612

Om projektet

3 forslag
Projekt på afstand
Aktiv 3 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
3 freelancere byder i gennemsnit $317 CAD på dette job
Brug Avatar.
Hello there, Elixir and Erlang expert here. I will help building this module for you as per your requirements. Please contact me let's get started.
$500 CAD på 3 dage
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
Hello An Elixir Expert here Only focused on elixir I can give this module as per the requirement contact me
$250 CAD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0
Brug Avatar.
Sounds like fun I am expert in programming ruby and also elixir, we do our server app in elixir let me help you with your assignment
$200 CAD på 2 dage
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for CANADA
Toronto, Canada
0,0
0
Medlem siden jun. 5, 2021

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.