snippets

Snippet code, help with coding code samples, solution to interview questions in Python Java, PHP etc.

Getting Started with Python NumPy arrays

How to install Numpy (Windows and Linux)

Installing NumPy is the same across all operating systems (Windows, Linux, and Mac) using pip, conda, or from the source. However, the commands used to execute the installation may vary slightly depending on the OS. For example, using pip, the “pip install numpy” command is used in all operating systems, however, it needs to be …

How to install Numpy (Windows and Linux) Read More »

How to use equal and not equal operator in Python

How to use equal and not equal operators in Python

Learn about One of the most important Python operators: Python == and Python !=. These comparison operators can be used with integers, strings, lists, dictionaries, and anything you can think of. These operators can compare the integer value with the float value; for example 1 == 1.0, this statement returns True because technically these two …

How to use equal and not equal operators in Python Read More »

How to Make a Game in C++ Visual Studio: Tic Tac Toe

The visual studio is an IDE (Integrated Development Environment) mainly used to create various applications and chiefly gaming applications. This software provides its user with a comfortable environment to produce any game or application.  It supports some built-in high-level programming languages like C, C++, and C#. Moreover, it also sustains other languages like python and …

How to Make a Game in C++ Visual Studio: Tic Tac Toe Read More »

Leetcode 146. LRU Cache: Multiple Solutions in Python Code

“Design LRU cache” is a very typical interview problem asked in FAANG. This question shows the design capability of the candidate and how he selects the datatype while programming. Caches are an integral component of any computing system. These are tiny containers that store data fragments to make them accessible easily thus, reducing computing time.  …

Leetcode 146. LRU Cache: Multiple Solutions in Python Code Read More »

Scroll to Top