# All Easy Articles Basic Easy Medium Hard Expert All Categories Arrays Misc Program Output Strings Linked Lists Bit Magic Articles Trees MCQ GFacts Interview Experiences GBlog Stack Queue Algorithm Analysis Dynamic Programming Greedy Backtracking Pattern Searching Divide and Conquer Searching Sorting Mathematical Geometric Heap Hash Randomized Combinatorial Matrix Binary Search Tree Advanced Data Structure Project Technical Scripter Python Competitive Programming Internship Experienced TechTips Geek on the Top Branch and Bound Game Theory Computer Networks Operating Systems DBMS GATE CS SQL Java Compiler Design Recursion Puzzles C C++ Data Structures Graph School Programming Design Pattern Articles Placements QA – Placements Reasoning – Placements English – Placements DI – Placements Aptitude Web technologies Python-Quizzes QA – Placement Quizzes C Quiz C++ Quiz Java Quiz GATE Operating Systems DBMS Quiz Computer Networks Quiz Data Structures Algorithms Compiler Design Computer Organization and Architecture Digital Electronics & Logic Design Theory of Computation & Automata Computer Organization & Architecture Engineering Mathematics Difference Between Advanced Computer Subject C Programs C++ Programs Java Programs Python Programs Web Technologies JavaScript Linux-Unix

## Two Pointers Technique November 24, 2017 2

Two pointer is really an easy and effective technique which is typically used for searching pairs in a sorted arrays. Given a sorted array A… Read More »

## Smallest number whose set bits are maximum in a given range November 23, 2017 2

Given a positive integer ‘l‘ and ‘r‘. Find the smallest number ‘n‘ such that l <= n <= r and count of number of set… Read More »

## Check if a number is positive, negative or zero using bit operators November 22, 2017 2

Given a number N, check if it is positive, negative or zero without using conditional statements. Examples: Input : 30 Output : 30 is positive… Read More »

## Find element in array that divides all array elements 2

Given an array of n non-negative integers. Find such element in the array, that all array elements are divisible by it. Examples: Input : arr[]… Read More »

## Program for Bridge and Torch problem November 21, 2017 2

Given an array of positive distinct integer denoting the crossing time of ‘n’ people. These ‘n’ people are standing at one side of bridge. Bridge… Read More »

## Mirror characters of a string November 20, 2017 2

Given a string and a number N, we need to mirror the characters from N-th position up to the length of the string in the… Read More »

## TCS Interview Experience | Set 20 (On Campus) November 19, 2017 2

TCS Recruitment process contains total 2 levels. 1.Its an test of 90 mins which contains a) Verbal Ability ( Email writing – 10 mins) b)… Read More »

## Printing string in plus ‘+’ pattern in the matrix November 17, 2017 2.5

Given a string, print it inside a matrix in such a way that a ‘plus’ is formed. Examples: Input: TOP Output: X T X T… Read More »

## Number of stopping station problem 2

There are 12 intermediate stations between two places A and B. Find the number of ways in which a train can be made to stop… Read More »

## Pair with given sum and maximum shortest distance from end 2

Given an array of N integers and an integer K, pick two distinct elements whose sum is K and find the maximum shortest distance of… Read More »

## How can I start to learn Web Development ? 2.5

How can I start to learn web development ? Is it easy or not? And how can I update myself with latest web designing technologies?… Read More »

## Count sub-arrays which have elements less than or equal to X 2

Given an array of n elements and an integer X. Count the number of sub-arrays of this array which have all elements less than or… Read More »

## Program to find last two digits of Nth Fibonacci number November 16, 2017 2

Given a number ‘n’, write a function that prints the last two digits of n-th (‘n’ can also be a large number) Fibonacci number. Examples:… Read More »

## Longest subsequence having equal numbers of 0 and 1 2

Given a binary array, the task is find the size of the largest sub_sequence which having equal number of zeros and one. Input : arr[]… Read More »

## Longest sequence of positive integers in an array 2

Find the longest running positive sequence in an array. Examples: Input : arr[] = {1, 2, -3, 2, 3, 4, -6, 1, 2, 3, 4,… Read More »

## Check whether a number can be represented by sum of two squares November 15, 2017 2.5

We have a number n. We need to find whether number n can be represented by the sum of two squares. Examples: Input : n… Read More »

## k-th number in the Odd-Even sequence 2.6

Given two numbers n and k, find the k-th number in the Odd-Even sequence made of n. The Odd-Even sequence contains first contains all odd… Read More »

## Count the number of objects using Static member function 2.5

Prerequisite : Static variables , Static Functions Write a program to design a class having static member function named showcount() which has the property of… Read More »

## Linked List Sum of Nodes Between 0s 2

Given a linked list which contains series of numbers seperated by “0”. Add them and store in the linked list in-place. Examples: Input : 1->2->3->0->5->4->0->3->2->0… Read More »

## Sum of all numbers divisible by 6 in a given range November 14, 2017 2

Given a range L-R, find the sum of all numbers divisible by 6 in range L-R L and R are very large. Examples: Input :… Read More »