Two pointers is really an easy and effective technique which is typically used for searching pairs in a sorted array.Given a sorted array A (sorted… Read More

# Category Archives: Technical Scripter

Given an array A positive integers, sort the array in ascending order such that element in given subarray (start and end indexes are input) in… Read More

Redux is an open-source state management JavaScript library for managing the application state. It is popularly used ReactJS, but is not limited to it, and… Read More

Given an array arr[](1-based indexing) consisting of N positive integers such that arr[i] denotes the amount of the ith person. Also given are two 2D… Read More

Multi-Line Strings can be written in PHP using the following ways. Using escape sequences: We can use the \n escape sequences to declare multiple lines… Read More

The HTML DOM TableHeader colSpan property is used to set or return the value of the colspan attribute. The colspan attribute defines the number of… Read More

Prerequisite: QuickSort Algorithm The quicksort algorithm discussed in this article can take O(N2) time in the worst case. Hence, certain variations are needed which can… Read More

The tree is a hierarchical Data Structure. A binary tree is a tree that has at most two children. The node which is on the… Read More

C++ is the most preferred language for competitive programming. In this article, some features of C++ are discussed that make it best for competitive programming.… Read More

Evaluate the following integrals. Question 1. ∫(ex(cosx -sinx))dx Solution: Given expression is∫(excosx)-(exsinx)dx=∫(excosx) dx -∫(exsinx)dx=ex(cosx )-∫(exd(cosx)/dx-∫exsinx dx=ex(cosx )+∫exsinx dx-∫exsinx dx=ex(cosx) + c Question 2. ∫ex(x-2+2x-3)dx Solution: Given… Read More

Given a positive integer N, the task is to find all the prime triplets {P, Q, R} such that P = R – Q and… Read More