Skip to content

Instantly share code, notes, and snippets.

View wesolowski's full-sized avatar
😄
The future starts today, not tomorrow.

Rafał Wesołowski wesolowski

😄
The future starts today, not tomorrow.
View GitHub Profile
@wesolowski
wesolowski / Readme.md
Last active March 21, 2025 11:45
Setup Kali (WSL2)
# linux
rm -rf ~/.config/JetBrains/PhpStorm*/eval/*.evaluation.key ~/.config/JetBrains/PhpStorm*/options/other.xml ~/.java/.userPrefs/jetbrains
<?php
/* Sum Arrays
Write a function that takes an array of numbers and returns the sum of the numbers. The numbers can be negative or non-integer. If the array does not contain any numbers then you should return 0.
#### Examples
Input: [-2.398] Output: -2.398
Input: [1, 5.2, 4, 0, -1] Output: 9.2
Input: [] Output: 0