Skip to content
Practical Digital Transformation

Practical Digital Transformation

Tips to make tech work for you

  • My portfolio
  • Technical skills

Category Archives: coding

Sums of two integers in an array less than K

Sums of two integers in an array less than K

Given an array A of integers and integer K, return the maximum S such that there exist i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfying this equation, return -1

Posted byugogineeringJanuary 1, 2021January 1, 2021Posted incoding, php

Sum of even Fibonacci numbers less than x

Sum of even Fibonacci numbers

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

Posted byugogineeringJanuary 1, 2021January 1, 2021Posted incoding, php

Using PHP code to solve problems multiples of 3 and 5

Sum of multiples of 3 and 5

If we list all the natural numbers from 0 – 40 that are multiples of 3 and 5, we get 15 and 30 only.
The sum of these multiples is 45.

Posted byugogineeringNovember 26, 2020November 26, 2020Posted incoding, phpTags: Sum of multiples of 3 and 5

Using PHP code to solve problems multiples of 3 or 5

Using PHP to solve problems - Problem 1

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.

Posted byugogineeringNovember 25, 2020November 26, 2020Posted incoding, phpTags: sum of multiples of 3 or 5 PHP

Recent Posts

  • Benefits of building applications that are optimised for cost and value on GKE
  • Website Design Fundamentals with HTML, CSS, and JavaScript
  • Give yourself the fundamental skills you need to kick-start a digital career
  • Sums of two integers in an array less than K
  • Sum of even Fibonacci numbers less than x

Recent Comments

    Archives

    • February 2022
    • March 2021
    • January 2021
    • December 2020
    • November 2020

    Categories

    • coding
    • Digital Business Transformation
    • Digital Skills
    • Digital Skills Training
    • Opinion
    • php
    Practical Digital Transformation, Proudly powered by WordPress.