SCSomsubhro Chakrabortyinsomsubhrochakraborty.hashnode.dev·Oct 25, 2024 · 4 min readSolved pattern problem in a easy wayWe all encounter challenges in building logic when trying to solve pattern problems. Questions like how to create the logic, what range to use for the loop, and how to apply if-else statements are common among students. I have faced these problems se...00
ABAbhik Bhattacharyainabhikb.hashnode.dev·Jan 10, 2024 · 5 min readCoding a Pascal's Triangle Best Explanation1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 That's how a pascal triangle looks like... Understanding the row structure Rows start from 1 , so row 1 is 1 , row 2 is 11 , row 3 is 121 & so on.... At first glance it looks like first row is 1, then ev...00
SGSahishna Gonganiinmydsajourney.dev·Aug 25, 2023 · 1 min readDay-1 codingPattern Problem #java input : 3 Output : 1,2,3,4,17,18,19,20 5,6,7,14,15,16 8,9,12,13 10,11 code import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ ArrayList<ArrayList...00