🚀 Day 15 – DSA Problem Solving: Generate Alternating Binary Triangle Pattern
📌 Problem 1: Generate Alternating Triangle Write a function that takes a number n and prints a triangle of size n where each row contains alternating 1s and 0s, starting with 1. 💡 Approach: To generate this alternating binary triangle, follow these steps: Create two variables: pattern → an empty string to accumulate the full…