Skip to content

DSA

Algorithms, Data Structures, Competitive Coding, and problems from LeetCode with complete Solution Approach, Pseudocode, and Explanation.

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