Python

coding challenge

[Solved] Find Two Unique Numbers from Array in O(n) Time

[Solved] How to find two unique numbers from array in O(n) time using XOR operation. Solved in Python, C/C++ and Java programming.

coding challenge

[Solved] Find Duplicate in Array in O(n) Linear Time

How to find duplicates in array in O(n) linear time. Using 1) sorting and 2) hashing. Problem solved in Python, C/C++ and Java.

coding challenge

[Solved] Group Anagrams From Given List | Coding Challenge

Coding challenge- Group Anagrams from the given list. Asked in Goldman Sachs interview. Solved in Python, C/C++ and Java.

coding challenge

Smallest Subarray with Sum Greater Than or Equal To Given Number

[Coding Challenge asked in Goldman Sachs] Smallest subarray with sum greater than given number. Solved in Python, C and Java.

Python

Monkey Patching in Python Explained with Coding Examples

[Simple Example Explained] What is monkey patching in Python? [Use-case] What is the use? Python code to change the behavior of Class and instance method.

Python

Python else after for/while loop explained with Example

[Explained with Examples] Python for else and while else statement. Else statement after the loop in Python.

Python

OSError: [WinError 10022] An invalid argument was supplied | Python Socket Error

[Error Solved] OSError: [WinError 10022] An invalid argument was supplied. Socket programming error in Python.

interview questions

Top 64 Python Interview Questions and Answers from Beginners to Advanced

List of top Python interview questions and answers. Python questions for developers, testers, automation engineers, data scientists…

Python

Name Mangling in Python with Example

What is name mangling in Python? Explain it with a simple example. How to use it with function overriding of base and derived class (inheritance)?