Skip to content

Instantly share code, notes, and snippets.

class Solution {
fun splitToOddAndEvenAndReverse(rootNode: Node): Pair<Node?, Node?> {
var lastEvenNode: Node? = null
var lastOddNode: Node? = null
var currentNode: Node? = rootNode
while (currentNode != null) {
val currentValue = currentNode.item
val nextNode = currentNode.next
@aivanovski
aivanovski / private-key-in-git-config.md
Last active May 4, 2022 20:01
How to manage multiple GitHub accounts in one machine

git config core.sshCommand "ssh -i ~/.ssh/another_id_rsa"

@aivanovski
aivanovski / android-decompile.sh
Created January 4, 2019 20:18 — forked from nstarke/android-decompile.sh
Android APK Decompile Script
#!/bin/bash
APK=$1
# Linux only right now.
if [ ! -d "$HOME/.android-decompile-tools" ]; then
mkdir "$HOME/.android-decompile-tools"
fi