Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Sarika Singh has Published 192 Articles
Sarika Singh
648 Views
What Are 1-bit and 2-bit Characters? In computers, everything is stored in the form of bits, i.e., the smallest pieces of data that can be either 0 or 1. Now, when we talk about 1-bit or 2-bit characters, we mean how many of these bits are used to make a ... Read More
Sarika Singh
2K+ Views
In Python, functions usually have a fixed number of arguments. However, there are situations where we may want to pass a variable number of arguments. In such cases, Python provides two special constructs: *args and **kwargs. *args allows a function to accept any number of positional arguments. **kwargs allows ... Read More
Sarika Singh
218 Views
What Is a 1/4 Mile Calculator? A 1/4 mile calculator helps to estimate how long it will take for a vehicle to cover a quarter-mile (about 400 meters) based on speed. This is a common way to measure a car's acceleration and performance in drag racing. To make this estimation, ... Read More
Sarika Singh
4K+ Views
In Python, some special methods have names that start and end with double underscores. These are called dunder methods. One such method is __exit__, which is used in context managers for cleanup tasks. Context Manager in Python Context Mangers helps to manage resources such as files, database connections, or network ... Read More
Sarika Singh
3K+ Views
Python does not require a main function to start execution like many other programming languages. Instead, it uses a special built-in variable called __name__ to determine how a Python script is being executed (directly or, is it imported as a module into another script). In this article, we will learn ... Read More
Sarika Singh
418 Views
What is the __future__ Module? The __future__ is a built-in Python module that is used to import features from newer versions of Python into older versions. This helps you to write code that will work the same way in both old and new versions of Python. It is mainly used ... Read More
Sarika Singh
1K+ Views
A cycle occurs when a path starts and ends at the same vertex, following the direction of the edges. In directed graphs, cycles can cause problems like infinite loops or dependency errors, so detecting them is important in areas like task scheduling and deadlock detection. We can use Depth-First Search ... Read More
Sarika Singh
914 Views
Rod Cutting ProblemThe Rod Cutting problem is a classic example of dynamic programming. The goal is to cut a rod into pieces to maximize the total value. Each piece has a specific length and value, and we must choose the cuts in such a way that the total value is ... Read More
Sarika Singh
401 Views
What is Cocktail Sort? Cocktail sort is a variation of bubble sort that sorts the array in both directions on each pass. It is also known as Bidirectional Bubble Sort or Shaker Sort. The algorithm works by traversing the list forward and backward, alternatively, pushing the largest and smallest elements ... Read More
Sarika Singh
299 Views
BogoSort, also known as Permutation Sort or Stupid Sort, is a sorting algorithm based on generating random permutations of the list until it gets sorted. BogoSort continues to shuffle the array randomly until the list becomes sorted. The expected time complexity is unbounded, and its average performance is extremely poor. ... Read More