Skip to content
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

Changes made in both file #4

Open
wants to merge 6 commits into
base: main
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
1 change: 1 addition & 0 deletions Match 01/submissions/rakshita.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const fizzBuzz=o=>{for(let z=1;z<=o;z++)z%3==0&&console.log("Fizz"),z%5==0&&console.log("Buzz"),z%3&&z%5==0&&console.log("FizzBuzz"),z%5!=0&&z%3!=0&&console.log(z)};
6 changes: 3 additions & 3 deletions Match 02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<h1>Let It Be</h1>
<h2>The Beatles</h2>
<div id="root"></div>
<script src="submissions/base.js"></script>
<script>
<script src="submissions/rakshita.js"></script>
<!-- <script>
const lyrics = solution()
.split("\n")
.map(sentence => sentence.charAt(0).toUpperCase() + sentence.substring(1))
.join("\n");
document.getElementById("root").innerText = lyrics;
</script>
</script> -->
</body>
</html>
1 change: 1 addition & 0 deletions Match 02/submissions/rakshita.min.js

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

5 changes: 3 additions & 2 deletions Match 03/submissions/base.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
function solution(a, b) {
return false;
}
return false;
}

21 changes: 21 additions & 0 deletions Match 03/submissions/rakshita.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

if(/^[a-zA-Z]/.test(a))
{

function solution(a, b) {
let n1=a.length;
let n2=a.length;

if(n1!=n2)
return false;
a.split('').sort();
b.split('').sort();
for(let i=0;i<n1;i++)
{
if(a[i]!=b[i])
return false;
return true;
}
}

} return false;//for having number as input
1 change: 1 addition & 0 deletions Match 03/submissions/rakshita.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let pattern=/[a-zA-Z]/g;function solution(t,e){if(t.length===e.length&&pattern.test(t)&&pattern.test(e))return t.toLowerCase().split("").sort().join("")===e.toLowerCase().split("").sort().join("")}