Skip to content

Category Archives: Technical Scripter

New date-time API is introduced in Java 8 to overcome the following drawbacks of old date-time API : Not thread safe : Unlike old java.util.Date… Read More
Given an array of n elements, the task is to find the fibonacci sum of a subset of the array where every element of the… Read More
The word Steganography is derived from two Greek words- ‘stegos’ meaning ‘to cover’ and ‘grayfia’, meaning ‘writing’, thus translating to ‘covered writing’, or ‘hidden writing’.… Read More
Given an array of N integers, the task is to perform the following two queries:  query(start, end) : Print the number of prime numbers in… Read More
Given a string that contains only the following => ‘{‘, ‘}’, ‘(‘, ‘)’, ‘[’, ‘]’. At some places there is ‘X’ in place of any… Read More
Given an array arr[] of n integers and some queries. Each query is of the form (L, R), where L and R are indices of… Read More
Given a Linked List, task is to check whether the Linked List is sorted in Descending order or not?  Examples :   Input : 8 ->… Read More
The java.lang.Math.sinh() returns the hyperbolic sine of a double value passed to it as argument. The hyperbolic sine of any value a is defined as,… Read More
The java.lang.Math.cosh() returns the hyperbolic cosine of a double value passed to it as argument. The hyperbolic cosine of any value a is defined as,… Read More
The java.lang.Math.tanh() returns the hyperbolic tangent of a double value passed to it as argument. The hyperbolic tangent of any value a is defined as,… Read More
The java.lang.Math.cos() returns the trigonometric cosine of an angle. If the argument is NaN or an infinity, then the result returned is NaN. The returned… Read More
The java.lang.Math.tan() returns the trigonometric tangent of an angle. If the argument is NaN or an infinity, then the result returned is NaN. If the… Read More
java.lang.Math.hypot() function is an inbuilt math function in Java that returns the Euclidean norm, . The function returns sqrt(x2 + y2) without intermediate overflow or… Read More
The java.lang.Math.asin() returns the arc sine of an angle in between -pi/2 and pi/2. Arc sine is also called as an inverse of a sine.… Read More
abs(), labs(), llabs() functions are defined in cstdlib header file. These functions return the absolute value of integer that is input to them as their… Read More