## Salesforce Interview Experience | On-Campus for FTE

Salesforce recently visited our campus BITS Pilani for the first time for Associate Member of Technical Staff role in Hyderabad. Round 1: Online Round (Hosted on… Read More »

## How to delete a range of values from the List using Iterator

Given a List, the task is to delete a range of values from this List using Iterator. Example: Input: list = [10 20 30 40… Read More »

## How to create a List with Constructor in C++ STL

Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, list has slow traversal, but once a position has been found, insertion… Read More »

## How to delete last element from a List in C++ STL

Given a List, the task is to remove the last element from this List in C++. Examples: Input: list = [10 20 30 70 80… Read More »

## Finding Floor and Ceil of a Sorted Array using C++ STL

Given a sorted array, the task is to find the floor and ceil of given numbers using STL. Examples: Input: arr[] = {1, 2, 4,… Read More »

## Find Maximum and Minimum element in a Set in C++ STL

Given a Set, the task is to find the maximum and minimum element of this set in C++ STL. Examples: Input: set={1, 6, 15, 10,… Read More »

## deque emplace in C++ STL

Deque or Double-ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are… Read More »

## How to delete an element from the Set by passing its value in C++

Given a Set, the task is to remove the last element from this Set in C++. Examples: Input: set = [10 20 30 70 80… Read More »

## unordered_map size() in C++ STL

The unordered_multimap::size() is a built-in function in C++ Standard Template Library which return’s the number of element int the unordered map. Syntax: unordered_multimap_name.size() Return Value:… Read More »

## unordered_map find in C++ STL

find function in C++ is used to search for a specific key in an unordered map. Syntax unordered_map.find(key); Parameters: It takes the key as a… Read More »

## unordered_map erase in C++ STL

erase function is used to erase elements from the unordered_map. There are three type of erase functions supported by unordered_map : erasing by iterator: It… Read More »

## How to create an unordered_set of user defined class or struct in C++?

The unordered_set internally implements a hash table to store elements. By default we can store only pre definded type as int, string, float etc. If… Read More »

## deque get_allocator in C++ STL

deque::get_allocator() is a built in function in C++ STL which is used to get allocator of container deque. Syntax: Allocator_type get_allocator() Parameters: This function does… Read More »

## unordered_multimap get_allocator in C++ STL

unordered_multimap::get_allocator() is a built in function in C++ STL which is used to get allocator of container unordered_mulitmap. Syntax: Allocator_type get_allocator() Parameters: This function does… Read More »

## deque shrink_to_fit in C++ STL

The deque::shrink_to_fit() is a built-in function in C++ STL which reduces the capacity of the container to fit its size and destroys all elements beyond… Read More »