From 24310b1deb03f39669b67a30de14f75937163435 Mon Sep 17 00:00:00 2001 From: Anastasios Chatzialexiou <16361161+tasxatzial@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:39:14 +0200 Subject: [PATCH] update starter file --- .../src/difference_of_squares.clj | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/exercises/practice/difference-of-squares/src/difference_of_squares.clj b/exercises/practice/difference-of-squares/src/difference_of_squares.clj index 5200bdcd..dd52819c 100644 --- a/exercises/practice/difference-of-squares/src/difference_of_squares.clj +++ b/exercises/practice/difference-of-squares/src/difference_of_squares.clj @@ -1,13 +1,19 @@ (ns difference-of-squares) -(defn difference [] ;; <- arglist goes here - ;; your code goes here -) +(defn square-of-sum + "Returns the square of the sum of the numbers up to the given number" + [n] + ;; function body + ) -(defn sum-of-squares [] ;; <- arglist goes here - ;; your code goes here -) +(defn sum-of-squares + "Returns the sum of the squares of the numbers up to the given number" + [n] + ;; function body + ) -(defn square-of-sum [] ;; <- arglist goes here - ;; your code goes here -) +(defn difference + "Returns the difference between the square of the sum of numbers up to a given number and the sum of the squares of those numbers" + [n] + ;; function body + )