Skip to content

Instantly share code, notes, and snippets.

View VadimsMalickis's full-sized avatar

Vadims Malickis VadimsMalickis

  • Rīgas Valsts Tehnikums
  • Rīga
View GitHub Profile
@VadimsMalickis
VadimsMalickis / Node.java
Last active September 23, 2025 11:30
Algorith_Homework
public class Node {
public static void main(String[] args) {
Node rootNode = new Node(22);
Node node1 = new Node(33);
Node node2 = new Node(44);
Node node3 = new Node(55);
Node node4 = new Node(66);
rootNode.setNext(node1);
node1.setNext(node2);
// Add SSH key
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
// Overwrite main branch with task-branch
git checkout master
git pull
git checkout task-branch
git merge -s ours main
git checkout main
git merge task-branch