22 Patterns | Java | Python
4 Rules
For the outer loop, count the no of lines
For the inner loop, focus on the no of columns
Print the ‘*” inside the inner for loop
Observe symmetry (optional)
Pattern 1
Problem Link
public class Solution {
public static void nForest(...
chetan77.hashnode.dev11 min read