mirror of
https://bitbucket.org/Mattrixwv/projecteulerlua.git
synced 2025-12-06 17:43:57 -05:00
Updated problems to be more in line with conventions
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
--ProjectEuler/lua/Problem22.lua
|
||||
--Matthew Ellison
|
||||
-- Created: 03-20-19
|
||||
--Modified: 03-28-19
|
||||
--Modified: 06-19-20
|
||||
--What is the total of all the name scores in the file?
|
||||
--All of my requires, unless otherwise listed, can be found at https://bitbucket.org/Mattrixwv/luaClasses
|
||||
--[[
|
||||
Copyright (C) 2019 Matthew Ellison
|
||||
Copyright (C) 2020 Matthew Ellison
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -397,9 +397,9 @@ NAMES = {"MARY","PATRICIA","LINDA","BARBARA","ELIZABETH","JENNIFER","MARIA","SUS
|
||||
|
||||
|
||||
--Setup the variables
|
||||
timer = Stopwatch:create();
|
||||
sums = {} --Holds the score based on the sum of the characters in the name
|
||||
prod = {} --Holds the score based on the sum of the characters and the location in alphabetical order
|
||||
local timer = Stopwatch:create();
|
||||
local sums = {} --Holds the score based on the sum of the characters in the name
|
||||
local prod = {} --Holds the score based on the sum of the characters and the location in alphabetical order
|
||||
|
||||
--Start the timer
|
||||
timer:start();
|
||||
|
||||
Reference in New Issue
Block a user