# Tag Archives: Functions

## Closures in Java with Examples

A method is a collection of statements that perform some specific task and return the result to the caller. A method can perform some specific… Read More »

## What are Hash Functions and How to choose a good Hash Function?

Prerequisite: Hashing | Set 1 (Introduction) What is a Hash Function? A function that converts a given big phone number to a small practical integer… Read More »

## Find the value of N when F(N) = f(a)+f(b) where a+b is the minimum possible and a*b = N

Given an integer N, the task is to find the value of F(N) if: F(1) = 0 F(2) = 2 F(N) = 0, if N… Read More »

## Compute maximum of the function efficiently over all sub-arrays

Given an array, arr[] and a function F(i, j). The task is to compute max{F(i, j)} over all sub-arrays [i..j]. The fucntion F() is defined… Read More »

## Find number from given list for which value of the function is closest to A

Given a function F(n) = P – (0.006 * n), where P is given. Given a list of integers and a number, . The task… Read More »

## CSS | cubic-bezier() Function

The cubic-bezier() function is an inbuilt function in CSS which is used to defines a Cubic Bezier curve. A Bezier curve is a mathematically defined… Read More »

## CSS | attr() Function

The attr() function is an inbuilt function in CSS which returns the value of an attribute of the selected elements. Syntax: attr( attr_name ) Parameter:… Read More »

## CSS | hsl() Function

The hsl() function is an inbuilt function in CSS which is used to define the colors using the Hue-saturation-lightness model (HSL). Syntax: hsl( hue, saturation,… Read More »

## CSS | calc() Function

The calc() function is an inbuilt function in CSS which is used to perform calculations based on CSS property. Syntax: calc( Expression ) Parameters: This… Read More »

## Opening Existing Excel sheet in Java using Apache POI

Apache POI is a powerful API by which one can read, write and modify any Microsoft document like powerpoint, world, or excel. Apache POI have… Read More »

## JavaScript | Number.isInteger( ) function

The Number.isInteger() function in JavaScript is used to check whether the value passed to it is an integer or not. It returns true if the… Read More »

## PHP | array_change_key_case() Function

The array_change_key_case() function is an inbuilt function in PHP and is used to change case of all of the keys in a given array either… Read More »

## PHP | join() Function

The join() function is built-in function in PHP and is used to join an array of elements which are separated by a string. Syntax string… Read More »

## PHP | is_finite(), is_infinite(), is_nan() Functions

Given any numerical value, it can be classified into 3 different classes such as Finite Number, Infinite Number and Not a Number or commonly known… Read More »

## PHP | substr() function

The substr() is a built-in function in PHP that is used to extract a part of string. Syntax: substr(string_name, start_position, string_length_to_cut) Parameters: The substr() function… Read More »