Skip to content
Gblog 100 Days of Code – A Complete Guide For Beginners and Experienced
Do you want to become a successful software developer and dreaming about getting into the big tech companies? Are you someone who is already working… Read More
Which one of the first order predicate calculus statements given below correctly express the following English statement?   Tigers and lions attack if they are hungry or… Read More
Let S = {1, 2, 3, …., m}, m>3. Let x1, x2,….xn be the subsets of S each of size 3. Define a function f… Read More
Given a set of elements N = {1, 2, …, n} and two arbitrary subsets A⊆N and B⊆N, how many of the n! permutations π… Read More
F is an n*n real matrix. b is an n*1 real vector. Suppose there are two n*1 vectors, u and v such that, u ≠… Read More
Let E, F and G be finite sets. Let X = (E ∩ F) – (F ∩ G) and Y = (E – (E ∩… Read More
For each element in a set of size 2n, an unbiased coin is tossed. The 2n coin tosses are independent. An element is chosen if… Read More
Consider the following log sequence of two transactions on a bank account, with initial balance 12000, that transfer 2000 to a mortgage payment and then… Read More
(A) L1 only (B) L3 Only (C) L1 and L2 (D) L2 and L3 Answer: (D) Explanation: A PDA can be built only for L1.… Read More
Inorder traversal of a Binary tree can either be done using recursion or with the use of a auxiliary stack. The idea of threaded binary… Read More
1. Phone Interview a. Given sorted array in decreasing order. Find first occurrence of given key. b. Find diameter of a binary tree. 2. Face… Read More
A priority queue is a type of queue that arranges elements based on their priority values. Elements with higher priority values are typically retrieved before… Read More
A constructor is a special member function that is automatically called by the compiler when an object is created and the destructor is also a… Read More
This problem is known as Clock angle problem where we need to find angle between hands of an analog clock at a given time.Examples:  Input:… Read More
Given a postfix expression, the task is to evaluate the postfix expression. Postfix expression: The expression of the form “a b operator” (ab+) i.e., when… Read More
What is in-place sorting? An in-place sorting algorithm uses constant space for producing the output (modifies the given array only). It sorts the list only… Read More

Start Your Coding Journey Now!