βN-th Tribonacci Number (Easy)` π Problem https://leetcode.com/problems/n-th-tribonacci-number/> π Answer class Solution { public int tribonacci(int n) { if (n == 0) ...
[Medium] All Possible Full Binary Trees
βAll Possible Full Binary Trees(Medium)` π Problem https://leetcode.com/problems/all-possible-full-binary-trees/ π Answer /** * Definition for a binary tree node. * public class TreeNode { ...
[Easy] Power of Two
βPower of Two (Easy)` π Problem https://leetcode.com/problems/power-of-two/ π Answer class Solution { public boolean isPowerOfTwo(int n) { if (n == 1) return true; if (n ==...
[Easy] Fibonacci Number
βFibonacci Number (Easy)` π Problem https://leetcode.com/problems/fibonacci-number/ π Answer class Solution { public int fib(int n) { if (n == 0) return 0; if (n == 1) retu...
[Medium] Sort List
βSort List (Medium)` π Problem https://leetcode.com/problems/sort-list/ π Answer /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ...