Skip to content
All Medium Articles
Hello Geeks, I had interview in amazon few days before. I’m sharing you my experience. It was for SDE-I Profile for Hyderabad(India) location. Round 1:… Read More
In Java, inner class refers to the class that is declared inside class or interface which were mainly introduced, to sum up, same logically relatable… Read More
Given an unsorted array, trim the array such that twice of minimum is greater than maximum in the trimmed array. Elements should be removed either… Read More
This post is an extension of How to dynamically allocate a 2D array in C? A one dimensional array can be easily passed as a pointer,… Read More
Before the advent of QWERTY keyboards, texts and numbers were placed on the same key. For example, 2 has “ABC” if we wanted to write… Read More
First of all I would like to thanks GeeksforGeeks for such a good website. Round 1 (Written Test) 1. GSAT(Global Samsung Aptitude Test) 2. 30… Read More
Given two sequences, print the longest subsequence present in both of them. Examples: LCS for input Sequences “ABCDGH” and “AEDFHR” is “ADH” of length 3. LCS for input… Read More
Consider the following relational schema: employee(empId, empName, empDept) customer(custId, custName, salesRepId, rating) salesRepId is a foreign key referring to empId of the employee relation. Assume… Read More
Consider the pseudocode given below. The function DoSomething() takes as argument a pointer to the root of an arbitrary tree represented by the leftMostChild-rightSibling representation.… Read More
Suppose we have a balanced binary search tree T holding n numbers. We are given two numbers L and H and wish to sum up… Read More
Here, wr is the reverse of the string w. Which of these languages are deterministic Context-free languages? (A) None of the languages (B) Only L1… Read More
A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is 01111100101, then the input bit-string is… Read More
(A) A (B) B (C) C (D) D Answer: (C) Explanation: Let ∑ ={a, b} then ∑* = { ε, a, b, aa, ba, bb, ……………….} “Set of… Read More
Let A be a square matrix of size n x n. Consider the following program. What is the expected output? C = 100 for i… Read More
Let G be a group with 15 elements. Let L be a subgroup of G. It is known that L != G and that the… Read More
The product of the non-zero eigenvalues of the matrix 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 0… Read More
In designing a computer’s cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct… Read More
A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered 1, 2, …, 100… Read More
Consider the following schedule S of transactions T1, T2, T3, T4: Which one of the following statements is CORRECT? (A) S is conflict-serializable but not… Read More
An IP machine Q has a path to another IP machine H via three IP routers R1, R2, and R3. Q—R1—R2—R3—H H acts as an… Read More

Start Your Coding Journey Now!