Hackerrank test
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 - 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);
Developer | Berkin |
Username | berkin |
Uploaded | November 24, 2022 |
Rating | 3 |
Size | 1,632 Kb |
Views | 22,264 |
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!
Name | Size |
Touch carousel with hammer.js | 14,992 Kb |
Touch Carousel | 3,901 Kb |
Merge overlapping intervals | 1,889 Kb |
JQuery UI datepicker with arrow pointing the input | 2,246 Kb |
Simple carousel | 3,098 Kb |
Javascript - Selection Sort | 1,577 Kb |
Pull to Refresh | 2,528 Kb |
IOS style alphabetic scroll | 3,488 Kb |
Grid paper | 1,628 Kb |
Big factorial | 1,567 Kb |
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!
Name | Username | Size |
Console fun | Dviate | 1,500 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
Tab panels | Accessibility | 0 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 Kb |
Portfolio page | Bhavya_j | 2,804 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!