CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 01:14:36 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=51f62e8b612a0d20ce46f4af0fb6fe85a1bb4f5a3c85d3f0a6f8961e08081481a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22FTvXgmWTQcPoaC1r0H_yaFmtNaPRgB3o%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ca8068bb36a403-BLR
function solve(array) { let newArray = array[0].split(' '); let currentActi - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(array) {
- let newArray = array[0].split(' ');
- let currentAction = [];
- let game = '';
- let expansion = '';
- let gameExpansion = '';
- let expansionArray = [];
- for (let i = 1; i < array.length; i++) {
- currentAction = array[i].split(' ');
- if (currentAction.includes('Install')) {
- //newArray.push(currentAction[1]);
- array[i] = array[i].replace('Install ', '')
- if (!newArray.includes(array[i]))
- newArray = newArray.concat('' + array[i])
- }
- if (currentAction.includes('Uninstall')) {
- game = currentAction[1];
- for (let j = 0; j < newArray.length; j++) {
- if (newArray[j] === game) {
- newArray.splice(j, 1);
- //break;
- }
- }
- }
- if (currentAction.includes('Update')) {
- game = currentAction[1];
- for (let j = 0; j < newArray.length; j++) {
- if (newArray[j] === game) {
- newArray.push(newArray.splice(j, 1)[0]);
- // break;
- }
- }
- }
- if (currentAction.includes('Expansion')) {
- expansionArray = currentAction[1].split('-')
- game = expansionArray[0];
- expansion = expansionArray[1];
- gameExpansion = `${game}:${expansion}`;
- if (newArray.includes(game)) {
- for (let k = 0; k < newArray.length; k++) {
- if (game == newArray[k]) {
- newArray.splice(k + 1, 0, gameExpansion);
- //break;
- }
- }
- }
- }
- }
- console.log(newArray.join(' '));
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 13 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ U
JavaScript | 24 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ L
JavaScript | 35 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 35 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 8
JavaScript | 46 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ Q
JavaScript | 46 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ N
JavaScript | 57 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ A
JavaScript | 57 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand