Below is the example of the Math exp() Method. Example: html <script type="text/javascript"> document.write("When zero is passed as a parameter: " + Math.exp(0)); </script> Output: … Read More

Method of applying : I applied to Directi via employee referral. Round 1: Online coding round (Codechef , 90 minutes) Problem 1 : Easy, Adhoc Statement… Read More

Round 1:My round 1 was not that hard, it was resume based session, it started with my introduction and then i was asked about encapsulation,… Read More

Given n integers, find the largest number is not a perfect square. Print -1 if there is no number that is perfect square. Examples: Input :… Read More

Prerequisite : Permutation and Combination n students appear in an examination, find the number of ways the result of examination can be announced. Answer is… Read More

Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the… Read More

Less command is a Linux utility that can be used to read the contents of a text file one page(one screen) at a time. It… Read More

Given a matrix, find the maximum sum we can have by selecting just one element from every row. Condition is element selected from nth row… Read More

Given an array of size n. The problem is to find the sum of numbers which are even and are at even index.Examples: Input :… Read More

Given a string s and Q number of queries. Each query Q consists of l and r and a character c. Find frequency of character… Read More

Give a positive integer n, find modular multiplicative inverse of all integer from 1 to n with respect to a big prime number, say, ‘prime’.… Read More

In C++ vectors are dynamic arrays. Unlike arrays, they don’t have a fixed size. They can grow or shrink as required. Vectors are assigned memory… Read More

This post is especially for people of non-CS branches who have developed interest towards coding and would like to work in a software company. The… Read More

ANN learning is robust to errors in the training data and has been successfully applied for learning real-valued, discrete-valued, and vector-valued functions containing problems such… Read More

Virtualization is a technique of how to separate a service from the underlying physical delivery of that service. It is the process of creating a… Read More