Skip to content

LeetCode

Polyfill for Array.prototype.reduce

Polyfill for Array.prototype.reduce

Write a polyfill for Array.prototype.reduce in JavaScript and take care of all edge cases below, πŸ”—Array.prototype.reduce πŸŸ’ Easy 🧩 Pattern – JavaScript Essentials JavaScript Reduce Polyfill

Palindrome Number - 9

Palindrome Number – 9

πŸ”—LC9 🟒 Easy 🧩 Pattern – math logic Given an integer x, return true if x is a PALINDROME, and false otherwise. Follow up: Could you solve it without converting the integer to a string? Example Solution

Generate Fibonacci Sequence – 2648

πŸ”—LC2648 🟒 Easy 🧩 Pattern – Generator Functions Write a generator function that returns a generator object which yields the Fibonacci sequence. The Fibonacci sequence is defined by the relation Xn = Xn-1 + Xn-2. The first few numbers of the series are 0, 1, 1, 2, 3, 5, 8, 13. Example Solution