top of page
TECHHARPER'S HUB
Create Your First Project
Start adding your projects to your portfolio. Click on "Manage Projects" to get started
Daily Coding Problems 1: Throw Dice Fuction
Project type
Daily Coding Problem
Date
22 December 2023
Location
Saskatoon
This problem was asked by Spotify.
Write a function, throw_dice(N, faces, total), that determines how many ways it is possible to throw N dice with some number of faces each to get a specific total.
For example, throw_dice(3, 6, 7) should equal 15.
The code is available on GitHub: https://github.com/Harpreet1716/Throw-Dice-Function
bottom of page