Sha256: 812adab32d56c4224294be14ea449a234d44db72d1a41c281ca51bc808f1415e

Contents?: true

Size: 471 Bytes

Versions: 221

Compression:

Stored size: 471 Bytes

Contents

"
" Find the difference between the square of the sum and the sum of the squares
" of the first N natural numbers.
"
" Examples:
"
"   :echo SquareOfSum(3)
"   36
"   :echo SumOfSquares(3)
"   14
"   :echo Difference(3)
"   22
"
function! Difference(number) abort
  " your implemention goes here
endfunction

function! SquareOfSum(number) abort
  " your implemention goes here
endfunction

function! SumOfSquares(number) abort
  " your implemention goes here
endfunction

Version data entries

221 entries across 221 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.179 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.178 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.177 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.176 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.175 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.174 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.173 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.172 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.171 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.170 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.169 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.167 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.166 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.165 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.164 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.163 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.162 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.161 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim
trackler-2.2.1.160 tracks/vimscript/exercises/difference-of-squares/difference_of_squares.vim