Back to problems

GPU Credit Calculator

Algorithm · OpenAI · Easy

You receive a comma-delimited string describing GPU jobs and the number of hours each one used. Every item follows the format jobName:time(hours). Compute and return the combined GPU time across all listed jobs. You may rely on the input being valid and complete. Example The three jobs consume 1.5, 2.25, and 0.75 GPU-hours, which add up to 4.5.

Checking your access…