CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:22:12 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=a27fd927bdd498d96f28a19b794f4b5accf90bd2f9c39b02122dcf664f1e906fa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22JVXpvXwoCGq25CGW0oNKEtI3tACGq5zd%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cf021dfef41eef-BLR
assignment1.erl - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -module(assignment1).
- -export([maximum/1,median/1]).
- maximum([X|Xs]) ->
- maximum(Xs, X).
- maximum([], Max) ->
- Max;
- maximum([X|Xs], Max) ->
- maximum(Xs, max(X, Max)).
- removeLast([X,_Y]) ->
- [X];
- removeLast([X|Xs]) ->
- [X|removeLast(Xs)].
- median([X]) ->
- X;
- median([X,Y]) ->
- (X + Y) / 2;
- median([_X|Xs]) ->
- median(removeLast(Xs)).
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 6
JavaScript | 7 sec ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 9 sec ago | 0.10 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 10 sec ago | 0.10 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 3
JavaScript | 19 sec ago | 0.24 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 20 sec ago | 0.10 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 22 sec ago | 0.10 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 27 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand