Category Archives: Interview Questions

Palindrome in python

String palindrome in python Write python code to find palindrome strings. A Palendrome string can be read the same from either direction left to right or right to left. Palindrome python code Here is a palindrome algorithm python code. You …

Read more »

Python anagram solver

Anagram solver in python Two strings are anagrams if they contain the same set of characters regardless of the order of individual characters such as “earth” and “heart”. Write python code to detect if two strings are anagrams. Python anagram …

Read more »

Find repeated characters in python

Python repeated character in string Given a string of characters. Write python code to print the repeated characters Solution This is a typical dictionary based problem. Here is how to do that in Python. # Input string str = “Computers …

Read more »

How to find second largest number in python

Second largest number python problem Given an array of numbers, write python code to find second largest number in array Code to find second largest number in list # Array A = [1, 5, 7, 5] # Initialize first and …

Read more »

Page table vs inverted page table

Introduction The purpose of this short post is to explain operating system’s page table vs inverted page table, mention their advantages and disadvantages in an easy to follow manner. Many students and beginners do not get the point behind these …

Read more »

Python mutex example

Introduction I highly recommend that you check out the following article to get a quick idea about different terms used in operating systems with regard to concurrency, multitasking and threading. Back to our topic, In this short post, I am …

Read more »

Static data member in C++

Introduction The distinction between regular and static variables in C++ is a such a confusing topic for many beginners including students and programers. In this short article, I am going to provide an brief explanation and hopefully remove the ambiguity. …

Read more »

Page 1 of 212