The Missionary & Cannibals Problem

On 1 bank of a river are 3 missionaries and 3 cannibals. There is 1 boat available that can hold up to 2 people and that they would want to use it to cross the river. If cannibals do ever outnumber missionaries on either of the river’s edges, the missionaries will get eaten. How can the boat be used by the missionaries and cannibals to safely carry all of them across the river?

Read More →

Algorithm for Finding Length Of The Longest Valid String

If we are given a string consisting of opening and closing parenthesis, let us find the length of longest valid parenthesis substring.

Read More →

Writable Streams in Javascript

Writable streams have many powerful events and functions. Here are the most common events

Read More →

[Solved] BrowserslistError: Unknown browser kaios

Solution to the Problem BrowserslistError: Unknown browser kaios at Array.reduce () at Array.some ()

Read More →

[Solved] Error: Property 'performance' is missing in type 'FirebaseApp'

In this article we will discuss a common issue encountered when using angular and firebase and also give its Solution. i.e Error: Property 'performance' is missing in type 'FirebaseApp'

Read More →

[Solved] ReferenceError primordials is not defined in node

In this article we will discuss solution to "ReferenceError primordials is not defined" Error.

Read More →

abs() function implementation issue in C++

In this article we will discuss why abs() on local works as expected, i.e. produces floating point results, but on server the end results are truncated to an integer.

Read More →

Best Way to Clear a List in Python

Have you ever wondered that which is the best way to clear off a list in python? Probably yes, as there are so many ways to do it. In this article, we will be discussing the difference between list = [] and list.clear() in python. These are used to clear entries in list in Python

Read More →
Search
Play 2048 Game Online