Ravi and Shanu play a game. Initially they write N random numbers on a sheet of paper. Suppose the integers written are a1, a2, a3 …..,an. Now they start playing a game. In each turn a player selects a number and erases it from the sheet.
Month: November 2021
Infosys – HackWithInfy Coding practice problem – 1 : Auction Winner
You are at a fine art auction and are looking for a specific painting. There are N people who have gathered to place a bid on that same painting.The rules of at this auction are a bit different, Such that, the person with the lowest unique bid wins the auction.
Implementation of Linked List in Python
In this post, We will see the implementation of Linked-List in python.
Creation of Linked List in Python
For creating a Linked List of 3 Nodes. We would first need to create 3 Nodes and then point next of Node1 to Node2, next of Node2 to Node3.