## HackerRank Solution – Problem Solving – Game of Two Stacks

Alexa has two stacks of non-negative integers, stack a[n] and stack b[m] where index 0 denotes the top of the stack. Alexa challenges Nick to play the following game: In each move, Nick can remove one integer from the top of either stack a or stack b. Nick keeps a running sum of the… Read More »HackerRank Solution – Problem Solving – Game of Two Stacks

## HackerRank Solution – Problem Solving – Equal Stacks

You have three stacks of cylinders where each cylinder has the same diameter, but they may vary in height. You can change the height of a stack by removing and discarding its topmost cylinder any number of times. This problem is given by Hacker Rank… Read More »HackerRank Solution – Problem Solving – Equal Stacks

## HackerRank Solution – Problem Solving – Balanced Brackets

A bracket is considered to be any one of the following characters: (, ), {, }, [, or ]. The coding problem is defined in Hacker Rank platform. The problem can expand your Data Structure knowledge, as well as can helps you to crack Interviews. Two brackets are considered to be… Read More »HackerRank Solution – Problem Solving – Balanced Brackets

## HackerRank Solution – Problem Solving – Maximum Element

In this post we will solve the Maximum Element Problem give by Hacker Rank. It will give you insight to solve any Data Structure Problem. You have an empty sequence, and you will be given N queries. Each query is one of these three types: Function Description… Read More »HackerRank Solution – Problem Solving – Maximum Element

## The gain G of a certain microwave dish antenna can be expressed as a function of angle by the equation. Plot this gain function on a polar plot, with the title “Antenna Gain vs” in boldface.

The gain G of a certain microwave dish antenna can be expressed as a function of angle by the equation where θ is measured in radians from the boresite of the dish, and sinc x=sin x/x. Plot this gain function on a polar plot, with… Read More »The gain G of a certain microwave dish antenna can be expressed as a function of angle by the equation. Plot this gain function on a polar plot, with the title “Antenna Gain vs” in boldface.

## Write a MATLAB program to evaluate the function:

y(x)=ln 1/(1 –x) for any user-specified value of x, where x is a number <1.0 (note that ln is the natural logarithm, the logarithm to the base e). Use an if structure to verify that the value passed to the program is legal. If the… Read More »Write a MATLAB program to evaluate the function:

## Problem Solving MATLAB Part 2 Chapman Book

Problem solving MATLAB from chapman book exercise. Solve simultaneous equations for x. Solve expression. Find operation is legal or not.

## Dynamic Array – HackerRank Solution

Query in format 1 x y and 2 x y is given, find the output as given in description using dynamic array concept.

## Problem Solving MATLAB Part 1 Chapman Book

Problem solving MATLAB from chapman book exercise. Working with array and it’s inbuilt method