Skip to main content

js

Stock Price Tracking

Submitted by daniel on

Say we have an array of values that represents the stock price of duckduckgo over time.

e.g.

const stocks = [1, 0, 5, 14,  -1, 10];

How do we write a function that tells us what the biggest margin is? What is the optimal price that we can both buy and sell at? We cannot sell stock before we buy it. 

One approach requires iterating though each number and calculate the delta of every price in the future to ensure that we only make comparisons going forward in time. 

Here is an example

Royal Mail Group

Submitted by daniel on

Utilised my experience of Drupal to lead the site building team at CapGemini

Client: Cap Gemini/Royal Mail Group

Theming Royal Mail registration and edit profile form pages according to style guidelines. 

Royal Mail Registration Form

Theming Drupal 6 custom modules to Royal Mail Style and Accessibility Guidelines.

Date Created