Prerequisite – Join (Inner, Left, Right and Full Joins) 1. Natural Join : Natural Join joins two tables based on same attribute name and datatypes.… Read More »
Given an array arr[], the task is to find the maximum LCM when the elements of the array are taken in pairs. Examples: Input: arr[]… Read More »
Given a list of integer each representing the length of each stick and an integer which tells how many times we can break a stick… Read More »
Given two integers N and R. The task is to calculate the probability of getting exactly r heads in n successive tosses. A fair coin… Read More »
As ironic as it may seem infinity is defined as an undefined number that can either be a positive or negative value. All arithmetic operations… Read More »
Prerequisites: Introduction to OpenCV OpenCV is the huge open-source library for computer vision, machine learning, and image processing and now it plays a major role… Read More »
Given a string you need to find the shortest palindromic substring of the string. If there are multiple answers output the lexicographically smallest. Examples: Input:… Read More »
Requirements analysis is very critical process that enables the success of a system or software project to be assessed. Requirements are generally split into two… Read More »
Given a number n, we need to print a X pattern of size n. Input : n = 3 Output : $ $ $ $… Read More »
Given a Number N. The task is to unset the rightmost set bit of N. Examples: Input: N = 5 Output: 4 Explanation: 101(5) ->… Read More »
Given a set of strings of the same length, we need to find the length of the longest string which is a prefix string of… Read More »
LRU (Least Recently Used) Cache discards the least recently used items first. This algorithm requires keeping track of what was used when, which is expensive… Read More »
I had applied to Amazon Hyderabad off campus for Programmer Analyst role. The first round conducted on HackerEarth. First Round – I don’t remember those… Read More »
Total there are four rounds in the interview process. 3 rounds data structures & algorithms and one round is about system design. I was asked… Read More »
Given a string str, our task is to find the Largest Alphabetic Character, whose both uppercase and lowercase are present in the string. The uppercase… Read More »
Round 1: Online Test Eligibility to appear in their online test was a minimum 60 per cent overall with no active backlog and maximum one… Read More »
Given a JSON string and the task is to convert the JSON string to the array of JSON objects. This array contains the values of… Read More »
On the day of my interview, woke up early in the morning and started my journey at 8:00 AM and my interview was scheduled at… Read More »
Prerequisite: File Handling in Python Given a text file fname, the task is to count the total number of characters, words, spaces and lines in… Read More »
Given a number K, the task is to create the Diamond-like structure of Tree which follows these two conditions: First K levels of the tree… Read More »

