# Programming

## Data Structure and Algorithms in Tech Companies interviews

In this article, we will see the important of data structure and algorithms in companies’ interview process, and will learn about most important topics of Data Structure, and see their implementation programmatically. Data Structure and Algorithms are commonly asked questions in tech interviews. It has significant weightage in interview of leading tech companies like Google, […]

## Stack Data Structure

Let’s say you have collection of books, and someone ask you to pile them up. Creating a pile of book Now, your friend ask you to perform these actions. Adding one book into pile You have only one option for this: To place on top of the book pile. Hence, pile size become bigger by

## Sorting algorithms

In data structure, we often need to rearrange elements of our data on basis of increasing/decreasing order to perform our key operation. This process of rearrangement is called sorting. There are multiple ways to make this rearrangement possible, and they are known as sorting algorithms in data structure. Sorting algorithms in Data Structure In this

What is a Linked List? A linked list is a linear data structure made of a chain of node objects in which each node object contains a value and a pointer to the next node in the chain. Linear data Structure: All the data is arranged in linear order Example: Single Linked list Types of linked list Single linked

## Top 6 best practices every coding newbie should know

Abraham Lincoln once said Give me six hours to chop down a tree and I will spend the first four hours sharpening the axe Programmers are highly enthusiastic people. They love to take challenge in any coding assignment, and start working till the program get solved. Coding is fun and challenging for them. Unfortunately they

## Find prime numbers in given range

Hello In this article, we are going to see how to print all prime numbers between a given range. We have shared code in python language. What is Prime number? Prime number is a number who is divisible by 1 and that number only. There are no factors other than these 2 two. Example of

## Program to find character occurrence in string

Hello In this article, we will see how to find the frequency of characters in a given string. This program to find character occurrence in a string is a popular question asked in technical job interview. Problem statement Given a string or list of words, you are required to find occurrence of each characters frequency.

## Program for Fibonacci numbers

Hello, In the article, we will see how to implement Fobonacci series in python. This is important article for technical interview preparation. What is Fibonacci series? Definition: a series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5,

## Program to Detect if Two Strings are Anagrams

Hello In the article, we will show how to find whether numbers are anagram. This article is part of interview preparation series. What is anagram? An anagram is a word or phrase formed by rearranging the letters of a different word or phrase in different order For example: team and meat are anagram. Secure and rescue are

## Find GCD of two numbers

Hello, In this article, we will see how to find GCD of 2 numbers in Python language. This article is part of our tech interview preparation series. What is GCD? GCD(Greatest common divisor) or HCF(Highest common factor) is common factor between 2 or more numbers which is divisible by both. GCD of 4 and 6

## Finding LCM of two numbers

Hello In this article, we will see how to find out LCM between 2 numbers programmatically. We have used Python language for finding LCM of 2 numbers. What is LCM LCM or Least Common Multiplier is a number which is smallest common multiplier of 2 or more numbers. For example- LCM of 4 and 6

## Armstrong number in Python

Hello In this article, we will see how to check whether a number is armstrong number or not in Python. What is armstrong number Armstrong numbers, also called narcissist numbers, are those number whose sum of cube of digit is equal to that number. How to check whether a number is armstrong Suppose we are

## Check whether a string is palindrome

Hello, Previously, we have seen how to find whether a number a palindrome or not in C++ (palindrome code in C++). In this article, we will see whether you can find a string(containing chars, numbers or special characters) and check whether it is a palindrome or not. We have shared python code to check palindrome