Pinned Loading
-
-
Generic Set ADT
Generic Set ADT 1package main
23import "fmt"
45func main() {
-
-
Iterative postorder traversal of a b...
Iterative postorder traversal of a binary tree 1/**
2* Definition for a binary tree node.
3* public class TreeNode {
4* int val;
5* TreeNode left;
-
Iterative Tower of Hanoi implementat...
Iterative Tower of Hanoi implementation in Java 1public class Hanoi {
2public long toh(int N, int from, int to, int aux) {
3LinkedList<Integer> stack = new LinkedList();
4LinkedList<Integer> froms = new LinkedList();
5LinkedList<Integer> tos = new LinkedList();
-
Generating lexicographically ordered...
Generating lexicographically ordered permutations 1public class Permutation {
2private char[] chars;
34public ArrayList<String> permutation(String s) {
5chars = s.toCharArray();
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.