Make Paper Great Again

This is me solving a stack and a queue problem on paper.

Do have a go at it if you're into Kiddy puzzles. (although circular arrays is a bit of a mind bender)


We have a stack and queue, [-,-,4,3] and [-,-,2,1] respectively. When you pop off of the stack, it enqueues on to the queue, implemented as a circular array. (So pop(x) => both pop off the stack, and enqueue(x))

(Front of the queue is currently on 2, and back on 1. We queue on to the front, and remove from the back. Note: This pattern is different from question 2!!).

What will the stack and queue look like after:













@jump_spider @Full_marx @design_RG @tek @kornel @namark @Raman @fahrni @mngrif @rodolpho @shibaprasad @Gomario @freemo


She is off her cone today, and enjoying nap time.

Sutures look scary, but are clean, dry and intact.

Show thread

Sorry for having disappeared this way.

My cat had developed Pyometra. Had to rush in for surgery. Luckily we caught it before it could spread.

There is still some infection in the vaginal stump, but tackling it with antibiotics, good food and love.

She is 95% in the clear.


Schizophrenic. Genius. Victim of State Apathy

RIP Vashishtha Narayan

Let’s collectively make sure we find our Vashishthas before mental disease does.

Genius walks on a a fine line between sanity and insanity.

@Warhorse @design_RG @freemo

You know the liberals are impeding India's progress, when they force the government to spend time and money to defend an honest defence deal.

Left Political parties notably the Indian National Congress @Incindia were riddled with corruption and criminally tried.

From Bofors Guns to Coal mines to Wireless Spectrum.

The only thing they liberally did was fill their pockets with taxpayer money.

We welcome the supreme court judgement absolving the Modi Govt of all false charges in the Rafale Deal.

But why did the Supreme Court not punish Rahul Gandhi? Especially when it itself declared that RG's petition was frivolous and intended to malign, while serving no real purpose.

SC should have set an example out of him, why was he spared? Because he is from the Gandhi Familly?

I want to get up to pee, but my cat has parked herself on me!!

Swami Vivekananda was a representative of Neo-Vedanta Philosophy.

He effectively fused Nationalism and Religion for the upliftment of poor people and to rescue them from oppression by the rich. He endorsed the sciences, leading to Tata creating the Indian Institute of science. He was a force for the propogation of Hinduism in the western Hemisphere.

He was against Untouchability, but wasn’t against the caste system. For him the caste system was one where an individual is not born into a caste but is assigned a caste based on his gunas (actions).

So someone with a lower caste parentage could work upto a higher caste and a Brahmin child could grow up to fall through the ranks of caste.

His views were that - Caste was an early social system. But its complexity led to its failure and abuse.

The teaching of Swami Vivekanada are quite complex. The complexity is evident in the way the students of treated an uninaugrated statue of Swami Vivekananda.

The thing about JNU students is that they are quite daft. They do not understand the concept of abstract thought let alone Neo-Vedanta Philosophy.

Never underestimate the power of stupid people in large numbers.

It is high time we renamed the college

Everybody has to wait in order to eat at this restaraunt.

Even Mew Mew.

The biggest producing Institution of India :: The , seems to use sex workers to lure men and women alike into nefarious inner circles.


No wonder they have been so effective at organizing anti-national campaigns. Ask where is the money for all this coming from?

The students recently opposed a Hostel fee hike to 2500 rs, citing it as an attack on the institute, while they themselves keep spending a lot more on their boose and ganja.

They are opposed to a hostel room rent of 600 rs. 600rs is a the price of two packs of cigarettes. The old rent was 20rs. !!!!!!

Does your country provide free food and stay to all its students? Wether or not they are from Economically Weaker Sections!!

They vandalised their entire campus, with spray paint, ( a can of spray paint costs 400-700 rs.)

It is a shame that tax payers are subsidizing these ideological terrorists.

These students may be getting the education their merit has earned them, but by having your living standards subsidised you are creating communists out of them.

Learning how to earn to support yourself is also a major part of education.

Just discovered this nifty little switch!!

Separate feeds but in one screen!!

My ADD is having a field day!!

And the ticker like motion of the Federated timeline is so cool !!

Can't wait to load this up on my bigger monitor!!

@freemo -- I was reading the About section, and I want to know what are the added features of QOTO ??

Mr. Amit Shah of the BJP watching political rivals decimate themselves.

Thug-Life Extraordinaire.

The left hates him, the way pests hate exterminators.

I have no prior knowledge of low level programming.

My question to all.

Should I jump straight into Rust ?

or should I do C, C++ in order to fully understand the abstractions in rust?

@seb @freemo @jump_spider -- please help and do tag pro coders and builders like yourself (I don't wanna waste all my time here discussing politics, need to make friends with knowledgeable people).

ps - where do i donate to qoto

This man is giving me cancer!!

Is even trending here on Mastodon??

I'm sure even the left believes this SS-NCP-CP is an unholy alliance.

You know the thing I love about Mastodon?

It's the ups and downs in server performance.

Those moments when activity peaks so high that stuff glitches out a bit. Toots don't load. Notifications don't come in. The beachball spins up.

All these are signs of something real. Signs of real human activity. The sae way a room gets difficult to navigate when it gets too crowded.

But more importantly, it gives you a sense of ownership of the platform.

How so?

Well if the servers aren't performing as well as they should be, we prolly need to ramp them up.

And who feels most responsible for this?

The Mastodonians do, we ourselves realise that it is our contribution that keeps this network afloat.

A 100% crowdfunded SN owned by the people.

Gone are the days when we would throng free services. They were only free in the financial sense. But we were paying for them dearly with our precious mental resources.

But we are free now, and all we have to pay is the equivalent of a Starbucks coffee.

Gonna leave a meme here for all you lovely people. (Yes that includes the obnoxious Indian Left wing too)

@freemo @stux

Naxal Influence in India.

is a term derrived from the terrorist movement.

It was powered by the 6th largest terrorist organization in The world - The communist party of India (ML)

Show thread

@freemo @stux @Gargron

The fact of the matter is that.

There existed an ancient structure under the mosque and the Hindus wanted it for worship.

Originaly they didnt even want to demolish the mosque they were tolerant of it. All they wanted were rights to pray at that site.

But the liberal government in India turned it into such a big issue by refusing to broker peace as that would mean anhilation of vote bank politics. And loss of votes in future elections as now people wouln’t care for religion and instead ask for development activities.

The current BJP Governemnet has put an end to the Ayodhya/Babri issue.

The issue isn’t about a place of worship.

It is about putting an end to asking for votes in the name of religion and instead let votes be asked for in the name of development and poverty alleviation.

Find below more photos of the Archaeological finds from beneath the mosque. They are clearly of non islamic nature.

There was a reason the supreme court handed the land to the Hindus.

It also gave 5 acres to muslims to build a grander much better mosque than the dilapited Babri.

After this Judgement no politician in India can ask for votes in the name of religion. Narendra Modi is the only person who could have facilitated this.

Show thread

@freemo @stux @Gargron

After a lot of debates and an ongoing court case in Allahbad.

The government ordered the Archaeological Survey of India to dig up the site under the demolished mosque.

But all digging was supposed to be done in the presence of Muslim Board and Hindu Parties. This ensures no foulplay.

Now here is where the funny thing happens.

Archeologst KK Muhammad and BB Lal discover Pillars, Carving, pottery, Devangari Script Inscriptions, Human Figurines. They discover that the entire Babri Masjid was built on top of pillars of a distinctly Non-Islamic Strucuture.

They find a civilization/township that had existed there since atleast 600 BC.

But strangely these archaeologists get transfered to other projects around the country after the discovery and the site gets handed to their interns who have never even held a pick axe let alone excavate a site.

These junior archaeologists (under gov pressure) give statements about how some artifacts were place there “after” the site had been dug up.

This was later proved to be untrue as in 2019 almost all of them said that they were either not trained in arxhaelogy or had written their reports after reading what was written in Newspapers.

Imagine writing about the most controversial issue after reading a bunch of newspapers and then submitting this to the government saying that there is nothing underneath the mosque.

BB lal and KK Muhammed the orignal archaeologists were very smart to not handover their field notebooks to them. If they had the interns would have manipulated the findings in a much more sever way. They knew the waves this discovery would create and risked their careers so that the truth could survive.

You have to understand this.

The Indian Gov back then Never wanted the matter resolved as the Ayodya/Babri Issue polarised Hindus against Muslims and turned into a major facilitator for Vote Bank Politics.

Why would you sell the hen that laid golden eggs?

Show thread


@freemo @stux @Gargron

This is Babri Masjid.

A mostly dilapidated Mosque that has been the subject of a 150 year old legal dispute, and 400 year old controversy

What is the controversy?

The mosque was built in 1600 by a mughal ruler Aurangazeb (muslim invader) after demolishing what some believe to be the most Holy Site for the Hindus - The birth place of Lord Ram.

Even after the construction of the mosque Hindus would throng to the structure to offer prayers to their lord, and had been doing so from 1600 - 1947

Mention of this can be found in the records of the British Empire, who themselves recorded the site as Ram Janmabhoomi(Ram Birthplace) + Babri Masjid.

After Independence quite a few Muslim Scholars requested the Muslim Board to give the Babri Site to Hindus saying -

“Babri Masjid is not a frequented site or a significant mosque, it doesn’t hold much importance to us Muslims but for the Hindus it is a very Holy Place. Let it be a peace offering and an end to religion of Politics”

But the the then goverment and the muslim board refused to take this proposal forward as doing so would mean that they could no longer ask for votes in the name of Religion.

The politics of religion went on unabated.

Leading to this-

In 1992 a gathering of around 100,000 Hindus tore down the dilapidated mosque demanding that Ram Temple underneath it be restored.

The government shot and killed 100s of Hindus that had gathered to bring the mosque down.

Then Congress government didn’t budge when asked to resolve the matter and said there was no proof that any structure existed underneath the mosque.

It said this without conducting any Archaeological Investigation.


Qoto Mastodon

QOTO: Question Others to Teach Ourselves. A STEM-oriented instance.

An inclusive free speech instance.
All cultures and opinions welcome.
Explicit hate speech and harassment strictly forbidden.
We federate with all servers: we don't block any servers.