×
Home Discussions Write at Opengenus IQ
×

Search anything:

  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

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

equal_range() in Set C++ STL

equal_range() is a built in function for Set container in C++ STL which is used to determine the range of a number or key value passed as a parameter.

Harshita Sahai Harshita Sahai
Software Engineering

Bucket in Unordered map in C++ STL

unordered_map::bucket for unordered map container in C++ STL is used to check if 2 elements have the same hash and hence, falls into the same bucket.

Syed Mujtaba Hadi Jafri
Algorithms

Find the smallest number with given number of digits and sum of digits

We are given two positive integers M and N. The task is to find the smallest number that has length M (number of digits) and sum of digits as N. We will solve this using a greedy approach in O(M)

Abdelrahman wael
Machine Learning (ML)

Applying Naive Bayes classifier on TF-IDF Vectorized Matrix

We will use Naive Bayes classifier on IF-IDF vectorized matrix for text classification task. We use the ImDb Movies Reviews Dataset for this.

Nidhi Mantri Nidhi Mantri
Software Engineering

Audio Fingerprinting using the AudioContext API

Audio fingerprinting takes advantage of device performance specs to build up an identifying fingerprint of a user. It uses the AudioContext API for this

Dawit U
Software Engineering

qsort in C

qsort in C is an in-built function for sorting array of any data types including structs. It, internally, uses a variant o Quick Sort and is a part of stdlib.h

OpenGenus Tech Review Team OpenGenus Tech Review Team
Algorithms

Calculate Newman Conway Sequence

Newman Conway Sequence is the sequence which follows a given recursive relation (p(n) = p(p(n-1)) + p(n-p(n-1))). We solve it using Dynamic Programming in O(N) time

Piyush Rajendra Chaudhari Piyush Rajendra Chaudhari
Software Engineering

Working with Zip File System in Java

In this article, we will work with ZIP file system in Java and see how we can move or copy files to ZIP, delete files from ZIP and rename a file in ZIP.

Nilesh
Software Engineering

Relational Operators for comparing Queue in C++ STL

Relational Operators used with queue c++ STL are overloaded operators which are used to perform appropriate comparisons between two queue objects. The queues are compared element by element.

Saatwik Bisaria
Software Engineering

Swap two sets (set::swap) in C++ STL

In this article, we will take a look into swapping two set containers in C++ Standard Template Library using swap method.

Harshita Sahai Harshita Sahai
Machine Learning (ML)

Hopfield Network

Hopfield Network is a recurrent neural network with bipolar threshold neurons. It consists of a set of interconnected neurons that update their activation values asynchronously.

Eklavya Chopra
Software Engineering

gets() vs fgets() in C and C++

gets() and fgets() are functions in C language to take input of string with spaces in between characters. gets suffer from buffer overflow which is solved by fgets

Harshiv Patel Harshiv Patel
Algorithms

Find number of subsets with sum divisible by given number M

Find the number of subsets with sum divisible by given number M. We solved this using a Dynamic Programming approach with time complexity O(N * M).

Siddharth Agarwal Siddharth Agarwal
Software Engineering

Types of CPU Scheduling algorithms

We explored different types of CPU Scheduling algorithms such as FCFS, SJF, SRTF, Round Robin, priority, multilevel queue and feedback queue scheduling.

Kshitiz Saini Kshitiz Saini
Software Engineering

Method Reference in Java

Method reference introduced in Java 8 release along with lambda expression as a mechanism to further shorten the lambda expressions containing a method call.

Navya Praniyath
Machine Learning (ML)

Luhn’s Heuristic Method for text summarization

The idea of Luhn’s Heuristic Method for text summarization is that any sentence with maximum occurrences of the highest frequency words(Stopwords) and least occurrences are not important to the meaning of the document

Ashutosh Vashisht Ashutosh Vashisht
Algorithms

Implement Least Recently Used (LRU) Cache

In this article, we have implemented Least Recently Used cache using 2 data structures: Doubly Linked Lists and Hash Map and compared LRU with FIFO cache.

Tanmay Maheshwari Tanmay Maheshwari
Software Engineering

ctype.h in C

ctype.h header file of the C Programming Language provide several functions that are used to testing different characters and changing some properties.

Amber Price
Software Engineering

Different ways to remove elements from vector in C++ STL

In this article, we will go through multiple ways to delete elements from a vector container in C++ STL like pop_back, pop_front, erase, clear, remove and more

Dilip Krishna
Software Engineering

Auto in C

Auto is a storage class/ keyword in C Programming language which is used to declare a local variable, forward declaration of nested functions and non-contiguous memory allocation.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Data Structures

Gap Buffer

Gap buffer is a data structure used to edit array of text in an efficient manner which is currently being edited. It is used in text editors.

Shivang Patel
Software Engineering

Canvas Fingerprinting

Canvas Fingerprinting is the most commonly used method of fingerprinting. It's one of the techniques that identify users based on device performance.

Dawit U
Software Engineering

Volatile in C

Volatile in C programming language is a keyword which is used with variables to inform the compiler not to apply any optimizations to code dealing with the variable.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Extern in C

Extern is a keyword in C programming language which is used to declare a global variable that is a variable without any memory assigned to it. It is used to declare variables and functions in header files.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Register in C

Register is a keyword in C which suggests the system to use register as a memory for a variable instead of RAM. This accelerates the reading and writing of memory

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