×
Home Discussions Write at Opengenus IQ
×

Search anything:

  • DSA Cheatsheet
  • HOME
  • Jobs
  • About
  • One Liner
  • RANDOM
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • AI Engineering
  • Scholarship
  • Campus Ambassador

OpenGenus IQ, an open-source Computer Science Publication House, is driven by 2500+ BSc/MSc/PhD holders globally, exploring Algorithms, Deep Learning, System Design, and more since 2017.

Software Engineering

#warning directive in C

#warning is a preprocessor directive in C which is used to raise compilation warnings for various situations. It is different from #error directive in that #warning will not cancel the compilation process while #error will cancel it.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

#undef directive in C

#undef is a preprocessor directive to remove an existing macro. It is useful as the only way to update an existing macro is to delete it (using undef) and create a new macro (using define).

OpenGenus Tech Review Team OpenGenus Tech Review Team
Data Structures

Sparse Table

Sparse table is a data structure which pre-process the information to answer static Range Queries in constant time O(1) with O(N log N) preprocessing.

Shivang Patel
Machine Learning (ML)

Decision Trees using Scikit-learn

In this article, we will understand decision tree by implementing an example in Python using the Sklearn package (Scikit Learn).

Janvi Talreja
Software Engineering

Basics of Reflection in Java

In Java, Reflection is a powerful and advanced feature that enables the programmers to inspect or modify the classes, interfaces, and methods of a program running on Java Virtual Machine.

Navya Praniyath
Machine Learning (ML)

SumBasic algorithm for text summarization

SumBasic is an algorithm to generate multi-document text summaries. Basic idea is to utilize frequently occuring words in a document than the less frequent words so as to generate a summary

Ashutosh Vashisht Ashutosh Vashisht
Software Engineering

Uploading a File to server in Node.JS

In this article, we will learn how to upload any file from the client side to a folder in the server by buidling a Node.js app.

Abhishek Kumar
Software Engineering

Fullscreen API in JavaScript

The full screen API allows an element on a page to be viewed in full screen. It makes it convenient for users to view web content in full pixel width and height.

Dawit U
Software Engineering

#define directive in C

#define is a preprocessor directive in C which is used to define macros. Macros are code framents which has been given a name.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

#ifdef directive in C

ifdef is an include guard. ifndef can be seen as if defined then do this till endif. It is opposite of [ifndef directive

OpenGenus Tech Review Team OpenGenus Tech Review Team
Machine Learning (ML)

Deep Q-Learning: Combining Deep Learning and Q-Learning

The idea in deep Q networks is that the states and possible outcomes in Q-Learning is replaced with a neural network which tries to approximate Q Values. It is referred to as the approximator

Anamitra Musib
Software Engineering

#ifndef directive in C

ifndef directive is a define directive in C which checks if a MACRO has been defined previously or not. If it has not been defined, it will execute a set of commands. It is followed by endif.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Getting started with 2D graphics in C++ (SDL2)

We will start by implementing a basic class design which initialize various parameters of SDL with a clear black window. From there, we will implement drawing different shapes and then we will create a simple animation

Shivang Patel
Algorithms

Maximize the sum of array[i]*i

Given an array of N integer, we have to maximize the sum of arr[i] * i. Brute force approach will take O(N*N!) time while greedy algorithm will take O(N log N) time

Bharat Arya Bharat Arya
Algorithms

8 Queens Problem using Backtracking

In this article, we will solve the 8 queens problem using backtracking which will take O(N!) time complexity. We demonstrate it with code.

Mansi Kathuria
Software Engineering

Automatically delete archives older than two days using Shell Script

In this article, we will understand the concept of Data Purging and learn how to automatically delete archives older than two days using Shell Script and cron tab scheduler.

Kshitiz Saini Kshitiz Saini
Software Engineering

Abstract Base class in Python

In this article we will discuss about Abstract base classes in Python. Abstract classes are an implementation of Abstraction in Object Oriented approach.

Ashutosh Vashisht Ashutosh Vashisht
Machine Learning (ML)

SMOTE for Imbalanced Dataset

In this post, we will see how to deal with an imbalanced dataset using SMOTE (Synthetic Minority Over-sampling TEchnique). We will also see its implementation in Python.

Akshat Maheshwari Akshat Maheshwari
Software Engineering

Memory Leaks in C

In this article, we explored the core reasons for memory leak in C with examples and how we can prevent such situations while writing C code

Abhishek Kumar
Software Engineering

Convert video to images in Python

In this article, we convert a video to images that is extract its frames in a folder using a Python code through the OpenCV library.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Types of References in Java

In this article, we explore the types of references in Java which includes strong reference, weak reference, soft reference and phantom reference.

Gabriel Lechenco Gabriel Lechenco
Software Engineering

Basics of using Docker

In this article, we explored the basic docker terms like images, container, engine and how to create docker images including basic docker commands like start and stop

Nishkarsh Raj Nishkarsh Raj
Software Engineering

Learn about Interface in Java in depth

In Java, the interface is a mechanism, using which programmers can connect different software components and make them interact with each other.

Navya Praniyath
Algorithms

Count all subsequences in an array with product less than K

Finding subsequences in an array with product less than a given number is another area of application of dynamic programming.

Ishmeet Singh Kalra Ishmeet Singh Kalra
Software Engineering

Working with limits.h in C

Limits.h header file in C is used to determine the set limits of variable data stypes. Macros defined in limits.h header file

Kshitiz Saini Kshitiz Saini
OpenGenus IQ © 2026 All rights reserved â„¢ [email: team@opengenus.org]
Top Posts LinkedIn Twitter