« first day (1301 days earlier)      last day (44 days later) » 

6:53 AM
def tower_of_hanoi(n, peg1, peg2):
    if (n == 1):
        print(f"Move plate 1 to peg {peg2}")
    else:
        peg3 = next(iter({"A","B","C"}.difference({peg1, peg2})))
        tower_of_hanoi(n-1, peg1, peg3)
        print(f"Move plate {n} to peg {peg2}" )
        tower_of_hanoi(n-1, peg3, peg2)


n = int(input("Number of plates : "))
peg_initial = input("We're moving from this peg (A/B/C) : ").upper()
peg_final = input("We're moving to this peg (A/B?C) : ").upper()

tower_of_hanoi(n, peg_initial, peg_final)
Program dump : Tower of Hanoi
 
 
5 hours later…
11:52 AM
I'll reach my apartment tonight so I'll check all the messages then 🙂
 
 
5 hours later…
4:52 PM
@Wolgwang "apartment"
 
5:02 PM
@RajdeepSindhu mai irregular hu isme
blog ka kya socha?
a more ordered way to see what you've been upto lately
also i'm back now
 
5:21 PM
 
 
1 hour later…
6:47 PM
@Wolgwang Ji, I have a lot more to write down
@Arjun Pakka likhunga bhay
Sem ke end tak for sure start kar dunga
Abhi thoda busy hu
@Arjun Ji, exactly
@Arjun Les go
 
ping sound turu lobe
@RajdeepSindhu me when code
(i wrote pseudo code)
 
@Arjun +1
@Arjun I don't even write that, I just doodle around in my rough notebook
 
@RajdeepSindhu rough notebook? more like ramanujan notebook
 
Ramannujan ko rough bol diya :(
 
@RajdeepSindhu discord hota toh joke karta
 
6:52 PM
Ye lo, tower of hanoi waali video (W/A waali)
 
@RajdeepSindhu i tried this in my AI course
ig 10 states define karni padi thi manually
nahi vo water jug tha
my bad
@RajdeepSindhu ji thanks
 
@Arjun aayein?
I implemented this one using recursion
 
@RajdeepSindhu kitna time laga
 
It looks even more beautiful for 20 discs, but it takes 51200% more time
 
complexity?
 
6:55 PM
@Arjun Bhot bhot gandi
That's all I know (haven't studied time complexity and stuff now)
 
SO pe upvote kardiye the btw
 
Themk yu
 
@RajdeepSindhu profs when complexity bad: DP laga lo
 
@RajdeepSindhu python me try karna same problem
 
6:58 PM
@Arjun Pehle ussi mein ki thi huehue
Without visualization
After all, it's a Python course
def tower_of_hanoi(n, peg1, peg2):
    if (n == 1):
        print(f"Move plate 1 to peg {peg2}")
    else:
        peg3 = next(iter({"A","B","C"}.difference({peg1, peg2})))
        tower_of_hanoi(n-1, peg1, peg3)
        print(f"Move plate {n} to peg {peg2}" )
        tower_of_hanoi(n-1, peg3, peg2)


n = int(input("Number of plates : "))
peg_initial = input("We're moving from this peg (A/B/C) : ").upper()
peg_final = input("We're moving to this peg (A/B?C) : ").upper()

tower_of_hanoi(n, peg_initial, peg_final)
 
noice
~meri assignment bhi kardena~
 
Ez pez hui toh kar dunga huehue
---abcd---
 
mathjax extension nahi h
fml
 
fir bhi ho jaata hai ye
bold and italics as well
 
Ez lag rahi
basic stuff implement karne ko
 
7:03 PM
Mujhe toh ez nahi lagi
 
@RajdeepSindhu ye pta tha, cut nahi laga
 
Bhai main sone chala. Was waiting for mathematics' grades. They haven't uploaded mine yet,
 
@RajdeepSindhu S hi aayega
 
The paper was easy, but for some reason, a lot of kids are scoring 17/20. Only one out of those I know got a perfect score so far
 
aap khud?
apka 19 tha iirc
 
7:04 PM
Nahi aaye marks mere abhi bhay
@Arjun Nah, woh programming mid sem tha
 
ji maafi
 
Btw mechanics mein full aaye huehue. Mere aur mr maths mein perfect score ke, kewal
He's the one with 9.79 GPA btw
 
@RajdeepSindhu ji yaad h
@RajdeepSindhu bhai hamare yahan toh
mechanics me highest score around 71% tha
1000 bacchon me
 
demn
aap ka mushkil hoga
 
ji eak question me mene 1 ghanta lagaya, teacher ne 0 de diya
 
7:06 PM
damn 💀
 
checking ke wakt unko approach samjhayi tab unhone 11/16 diye
 
les go
mere saath drawing mein hua tha ye, last sem, end sem mein
 
(brute force ko simplify kiya tha)
@RajdeepSindhu kya matlab email daali thi
 
straight 0 for a 15 mark question. i explained my solution and asked them to reconsider it. then 15/15
@Arjun ji aur chakkar kaate the
 
ki number badhao varna
 
7:07 PM
haryana waali pe aa jaunga
 
@RajdeepSindhu real
 
Good night bhai, kal milte hain (aaj, mera matlab)
 
@RajdeepSindhu ji take care
 

« first day (1301 days earlier)      last day (44 days later) »