Python
Find Parent of a Node in Binary Tree | Python Code
Problem statement: Write a program to find the parent of the node in binary tree (BT). (This question is asked in many coding interview rounds.) Example: Let's...
How to Solve Captcha Using Python?
You have probably encountered those annoying messages on registration or feedback pages that read, "Enter the letters you see on the image," or "Select the images with a..."...
Design Music Player with Shuffle Feature | Python Code
Problem statement: Design and implement a music player which has a shuffle playlist feature. Make sure shuffle doesn't repeat songs. This question was asked in the Amagi...
Write a Program to Find GCD of Two Numbers
What is GCD (Greatest Common Divisor)? GCD of the two numbers is the largest positive integer that divides both numbers. Characteristics: The GCD of the two numbers is...
[Solved] Maximum Profit by Buying and Selling Stocks Shares
Coding challenge: You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in...
Program to Check Anagram in Python | Example
What is Anagram? Tow strings are anagrams if they have the same set of characters. In other words, two strings are anagrams if we can form one string by rearranging elements...
Open PyCharm through Terminal as Root | Solve “Clear Read-Only
Are you getting an error saying Clear Read-Only Status ... while writing/updating a file in your PyCharm? This is more likely because your PyCharm doesn't have the...
Count Snow Units Captured between the Hills asked in GS [Coding Challenge]
Note: This coding challenge was asked in Goldman Sach coding round and in many other technical job interviews. Given an array of non-negative integers representing the...
[Fixed] “Failed building wheel for Pillow” in Python
Do you get an error while installing the pillow Python library? Failed building wheel for Pillow Pillow is one of the very popular Python libraries and has been used by...