Hackerrank test

Developer
Size
1,632 Kb
Views
22,264

How do I make an hackerrank test?

What is a hackerrank test? How do you make a hackerrank test? This script and codes were developed by Berkin on 24 November 2022, Thursday.

Hackerrank test Previews

Hackerrank test - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hackerrank test</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>

Hackerrank test - Script Codes JS Codes

function processData(input) { debugger; var lines = input.split("\n").slice(1), max = lines.length; lines.forEach(function(row, i) { var cols = row.split(""), max2 = cols.length, flag = true; if ( max2 > 1 ) { for ( var j = 1; j < max2; j++ ) { var sum1 = n(cols[j]) - n(cols[j-1]); var sum2 = n(cols[max2-j]) - n(cols[max2-(j-1)]); if ( Math.abs(sum1) !== Math.abs(sum2) ) { console.log("Not Funny"); flag = false; break; } } flag && console.log("Funny"); } });
}
function n(x) { return x.charCodeAt(0);
}
var inp = "2\nacxz\nbcxz";
processData(inp);
Hackerrank test - Script Codes
Hackerrank test - Script Codes
Home Page Home
Developer Berkin
Username berkin
Uploaded November 24, 2022
Rating 3
Size 1,632 Kb
Views 22,264
Do you need developer help for Hackerrank test?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Berkin (berkin) Script Codes
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!