Home
YUHAπŸ‘©πŸ»β€πŸ’»
Cancel

[Easy] N-th Tribonacci Number

β€˜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; * ...