Skip to content

Code-Challenge-2019 #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const {problem1 } = require("./problem1.js");
const {problem2 } = require("./problem2.js");

const Problem = async () => {
//Problem Solution 1 Call
// await problem1();

await problem2();
await problem1();

};

Problem();
6 changes: 3 additions & 3 deletions output1.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D1,true ,P1,2000
D2,true ,P1,3250
D3,true ,P3,15300
D1,true,P1,2000
D2,true,P1,3250
D3,true,P3,15300
D4,false,"",""
7 changes: 4 additions & 3 deletions output2.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
D1,true ,P2,3000
D2,true ,P1,3250
D3,true ,P3,15300
D1,true,P2,3000
D2,true,P1,3250
D3,true,P3,15300
D4,false,"",""

264 changes: 264 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "codechallenge",
"version": "1.0.0",
"description": "Qube Cinemas Challenge 2019",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "Barath",
"license": "ISC",
"dependencies": {
"csv-parser": "^3.0.0",
"csv-readable-stream": "^0.0.1",
"csv-reader": "^1.0.10",
"csvtojson": "^2.0.10"
}
}
Loading