Salesforce Apex Trigger Practice Questions 2022

Salesforce Apex Trigger Practice Questions

In this article, we have tried to cover frequently asked Salesforce Apex Trigger Practice Questions and understanding the basic concepts of apex triggers which are often asked in salesforce developer interview questions. What Is Trigger In Salesforce? A trigger is an Apex script that executes before or after specific data manipulation language (DML) events occur, such as … Read more

The Magical Stone Solution Codechef

The Magical Stone Solution Codechef Initially, there is a magical stone of mass 2N lying at the origin of the number line. For the next N seconds, the following event happens: Let us define the decomposition of a magical stone as follows: If there is a magical stone of mass M>1 lying at coordinate X, … Read more

Alternating Diameter ALTDIA Solution Codechef

Alternating Diameter ALTDIA Solution Codechef Chef stumbled upon B black nodes and W white nodes and now wants to construct a tree using them. Chef is bamboozled by the total number of trees that can be constructed using these nodes. To reduce this count, Chef considered only those trees which have at least one diameter that … Read more

Mystical Numbers XORGAND Solution Codechef

Mystical Numbers XORGAND Solution Codechef A number M is said to be a Mystical Number with respect to a number X if (M⊕X)>(M&X). You are given an array A of size N. You are also given Q queries. Each query consists of three integers L, R, and X. For each query, find the count of … Read more

Pushpa PUSH7PA Solution Codechef

Pushpa PUSH7PA Solution Codechef Pushpa has entered Chefland and wants to establish Pushpa-Raj here too. Chefland has N towers where the height of the ith tower is Hi. To establish Pushpa-Raj, Pushpa does the following: Initially, Pushpa chooses any tower i (1≤i≤N) and lands on the roof of that tower.Let X denote the height of … Read more