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.
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.
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)
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.
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
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
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
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.
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.
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.
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.
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
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).
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.
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.
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
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.
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.
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
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.
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.
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.
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.
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.
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