diff --git a/Match 01/submissions/base.js b/Match 01/submissions/base.js index c0df2c6..2f3a980 100644 --- a/Match 01/submissions/base.js +++ b/Match 01/submissions/base.js @@ -1,3 +1,3 @@ function solution(n) { return ""; -} \ No newline at end of file +} \ No newline at end of file diff --git a/Match 02/submissions/base.js b/Match 02/submissions/base.js index c8abba4..75d0a6d 100644 --- a/Match 02/submissions/base.js +++ b/Match 02/submissions/base.js @@ -1,38 +1 @@ -function solution() { - return `when i find myself in times of trouble -mother mary comes to me -speaking words of wisdom, let it be -and in my hour of darkness -she is standing right in front of me -speaking words of wisdom, let it be -let it be, let it be -let it be, let it be -whisper words of wisdom, let it be -and when the broken-hearted people -living in the world agree -there will be an answer, let it be -for though they may be parted -there is still a chance that they will see -there will be an answer, let it be -let it be, let it be -let it be, let it be -yeah, there will be an answer, let it be -let it be, let it be -let it be, let it be -whisper words of wisdom, let it be -let it be, let it be -ah, let it be, yeah, let it be -whisper words of wisdom, let it be -and when the night is cloudy -there is still a light that shines on me -shine on until tomorrow, let it be -i wake up to the sound of music, -mother mary comes to me -speaking words of wisdom, let it be -let it be, let it be -let it be, yeah, let it be -oh, there will be an answer, let it be -let it be, let it be -let it be, yeah, let it be -whisper words of wisdom, let it be`; -} \ No newline at end of file +function solution(){return `when i find myself in times of trouble mother mary comes to me speaking words of wisdom, let it be and in my hour of darkness she is standing right in front of me speaking words of wisdom, let it be let it be, let it be let it be, let it be whisper words of wisdom, let it be and when the broken-hearted people living in the world agree there will be an answer, let it be for though they may be parted there is still a chance that they will see there will be an answer, let it be let it be, let it be let it be, let it be yeah, there will be an answer, let it be let it be, let it be let it be, let it be whisper words of wisdom, let it be let it be, let it be ah, let it be, yeah, let it be whisper words of wisdom, let it be and when the night is cloudy there is still a light that shines on me shine on until tomorrow, let it be i wake up to the sound of music,mother mary comes to me speaking words of wisdom, let it be let it be, let it be let it be, yeah, let it be oh, there will be an answer, let it be let it be, let it be let it be, yeah, let it be whisper words of wisdom, let it be`;} \ No newline at end of file diff --git a/Match 02/submissions/nikhil.chandna.min.js b/Match 02/submissions/nikhil.chandna.min.js new file mode 100644 index 0000000..b5e1c8e --- /dev/null +++ b/Match 02/submissions/nikhil.chandna.min.js @@ -0,0 +1,43 @@ +function solution() { + var a = "let it be"; + var b = "words of wisdom"; + var c = "whisper"; + var d = "there will be an answer"; + var e = "speaking" + return `when i find myself in times of trouble mother mary comes to me +{$e} {$b},{$a} + and in my hour of darknessss + she is standing right in front of me + {$e} {$b}, {$a} + {$a}, {$a} + {$a}, {$a} + {$c} {$b}, {$a} + and when the broken-hearted people + living in the world agree + {$d}, {$a} + for though they may be parted + there is still a chance that they will see + {$d}, {$a} + {$a}, {$a} + {$a}, {$a} + yeah, {$d}, {$a} + {$a}, {$a} + {$a}, {$a} + {$c} {$b}, {$a} + {$a}, {$a} + ah, {$a}, yeah, {$a} + {$c} {$b}, {$a} + and when the night is cloudy + there is still a light that shines on me + shine on until tomorrow, {$a} + i wake up to the sound of music, + mother mary comes to me + {$e} {$b}, {$a} + {$a}, {$a} + {$a}, yeah, {$a} + oh, {$d}, {$a} + {$a}, {$a} + {$a}, yeah, {$a} + {$c} {$b}, {$a}`; + } + diff --git a/Match 03/index.html b/Match 03/index.html index e42844c..8bdbad2 100644 --- a/Match 03/index.html +++ b/Match 03/index.html @@ -8,7 +8,7 @@ h1, h2 { margin: 0 0 1em; } - input { + input { margin: 0 4px 8px 0; padding: 4px; } diff --git a/Match 03/submissions/base.js b/Match 03/submissions/base.js index 96f8d4a..aba9e24 100644 --- a/Match 03/submissions/base.js +++ b/Match 03/submissions/base.js @@ -1,3 +1,4 @@ function solution(a, b) { - return false; -} \ No newline at end of file + + return false; +} \ No newline at end of file diff --git a/Match 03/submissions/nikhil.chandna.min.js b/Match 03/submissions/nikhil.chandna.min.js new file mode 100644 index 0000000..94781e6 --- /dev/null +++ b/Match 03/submissions/nikhil.chandna.min.js @@ -0,0 +1 @@ +function solution(a, b) {const specialChars = /[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;let bool1=specialChars.test(a);let bool2=specialChars.test(b);if(bool1||bool2) return false;let arr1=[...a].join("");let arr2=[...b].join("");return !arr1.localeCompare(arr2)} \ No newline at end of file diff --git a/tempFile.js b/tempFile.js new file mode 100644 index 0000000..e69de29