All Medium Articles
Consider the following C code. Assume that unsigned long int type length is 64 bits. unsigned long int fun(unsigned long int n) {         unsigned long… Read More
This valentine, gift your loved ones a heart with a message written within it to express what you feel about them. Don’t miss the moment… Read More
The str_split() is an inbuilt function in PHP and is used to convert the given string into an array. This function basically splits the given… Read More
We have given two numbers x and n which are base and exponent respectively. Write a function to compute x^n where 1 <= x, n… Read More
In hashing there is a hash function that maps keys to some values. But these hashing functions may lead to a collision that is two… Read More
A processor has 16 integer registers (R0, R1, … , R15) and 64 floating point registers (F0, F1, … , F63). It uses a 2-byte… Read More
Consider the following C program. #include <stdio.h> struct Ournode {   char x, y, z; };    int main() {   struct Ournode p = {'1', '0',… Read More
Given a string s, find the length of the longest prefix, which is also a suffix. The prefix and suffix should not overlap. Examples:  Input… Read More
Write a program to print all distinct permutations of a given string in sorted order. Note that the input string may contain duplicate characters. In… Read More
t was ON Campus for Executive Graduate Trainee. 1: Online test It had 2 rounds. First round had aptitude, verbal, reasoning, data interpretation and some… Read More
We are given an array. We need to sort the even positioned elements in the ascending order and the odd positioned elements in the descending… Read More
Given a range [L, R], and a prime number P. We are required to find the sum of the highest power of P in all… Read More
A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure.… Read More
If pqr ≠ 0 and p^(-x) = 1/q, q^(-y) = 1/r, r^(-z) = 1/p, find the value of the product xyz ? (A) -1 (B)… Read More
Let’s take a quick recap. PHP is an interpreted language thus each statement is executed one after another, therefore PHP tends to send HTML to… Read More
There are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair… Read More
Until this moment, I did only 1 round. First they told me about the company and what they do here. Then asked about me, and… Read More
Round 1: C apps 10 one mark questions and 5 two mark questions General apps 10 one mark questions . (puzzles from gfg and other… Read More
College Name : Jalpaiguri Government Engineering College. Website : https://www.sristi.tech Date of Event : 8th February, 2018 Contact Details of Student Volunteer: 1. Kundan Kumar… Read More
Given two integers say a and b. Find the quotient after dividing a by b without using multiplication, division, and mod operator. Example:  Input :… Read More