"Itβs a rather complicated dance, so we figured weβd show you how we Dutch do it." π
Showing our American friends the essential Dutch supporter warmup before a soccer game. Jump left, jump right. Simple, right? π³π±πΊπΈβ½οΈ
#LinksRechts#Oranje#LeftToRight
Q->103=>Binary Tree Zig Zag Level Order Traversal good use of bool leftToRight (FLAG); v->ka size queue ke current size ke barabar hi lenge jab flag->true=>tab queue ke element v me right to left dalenge warna left to right push karte jaenge
heh heh, this was not intentional
(though perhaps I prefer it(?));
...thinking about it I'd actually want to call them:
`rightToLeft :: (a -> r b) -> (l a -> b)`
`leftToRight :: (l a -> b) -> (a -> r b)`
π Day 11 of my #gfgPOTD
Problem: Level Order in spiral form
Approach:Use a queue for level order traversal.
Use a flag leftToRight to reverse alternate levels.
Time Complexity: O(N)
Space Complexity: O(N)
@sandeepjain@geeksforgeeks#POTD
π Just mentioningPEMDAS isn't enough.reallyNeed to emphasizeMDASare done leftTOright too. Include some practice problems that highlight to help everyone get the rightAnswers.
For the best advice,I'd love to invite myTeacher @PaulGBrandon guru @ant0nill0s share their thoughts π