All Hard Articles
Given a string s that may have duplicate characters. Find out the lexicographic rank of s. s may consist of lower as well as upper… Read More
A View in SQL as a logical subset of data from one or more tables. Views are used to restrict data access. A View contains… Read More
Newspapers and magazines often have crypt-arithmetic puzzles of the form: Examples: Input : s1 = SEND, s2 = "MORE", s3 = "MONEY" Output : One… Read More
The introduction to clustering is discussed in this article and is advised to be understood first.  The clustering Algorithms are of many types. The following… Read More
In the world of Linux, managing and comparing files is a common task for system administrators and developers alike. The ability to compare files line… Read More
Given an array of Integers and an Integer value k, find out k sub-arrays(may be overlapping), which have k maximum sums. Examples: Input : arr… Read More
Given a number N, find the number of ways you can draw N chords in a circle with 2*N points such that no 2 chords… Read More
Stringstream is stream class present in C++ which is used for doing operations on a string. It can be used for formatting/parsing/converting a string to… Read More
Given a target position on infinite number line, i.e -infinity to +infinity. Starting form 0 you have to reach the target by moving as described… Read More
Prerequisite : Inter Process Communication A message queue is a linked list of messages stored within the kernel and identified by a message queue identifier. A… Read More
Addition or Subtraction of matrices takes O(n^2) time without threads but using threads we don’t reduce the time complexity of the program we divide the… Read More
Given a list of numbers, Your task is to remove and print every third number from a list of numbers until the list becomes empty.… Read More
Given four points, check whether they form Pythagorean Quadruple. It is defined as a tuple of integers a, b, c, d such that . They are basically… Read More
Samsung R&D Bengaluru, visited our campus for full time recruitment. There were 5 rounds in total. 1) Online coding round 2) GD 3) Technical round… Read More
Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop.  We have discussed… Read More
Samsung Bangalore came to our campus to recruit for a software development engineer role. The following process took place. Round 1: Online test. The question… Read More
Project Idea : A project based on scanning and detecting qr codes and with inclusion of pose estimation for optimization in detection of qr code… Read More
Given two numbers you are required to check whether they are anagrams of each other or not in binary representation. Examples: Input : a =… Read More
What is output of following C – Code? #include <stdio.h> #include <stdarg.h> int fun(int n, ...) {     int i, j = 1, val = 0;… Read More
Time Complexity: O(N) where N is number of nodes in a given binary tree Auxiliary Space: O(N)For the given input, this program prints the following… Read More