Software Engineering strcmp in C strcmp is a function in C which is used to compared two strings that is array of characters and returns if the first array is greater, smaller or equal to the second array
Algorithms Find the largest number with given number of digits and sum of digits In this problem, we need to find the largest number with a given number of digits N and given sum of digits say M. We will use a greedy algorithm to solve this is O(N) time complexity.
Machine Learning (ML) Exploratory Data Analysis using Python In this article, we will see what Exploratory Data Analysis (EDA) is, what are the different steps in it, and further how to implement it using Python
Algorithms Maximum Sum Rectangle in a Matrix Given a 2D array, we need to find the subarray with the maximum sum of its elements. We solve this using Dynamic Programming in O(N^3) where brute force takes O(N^5)
Machine Learning (ML) Edmundson Heuristic Method for text summarization Edmundson Heuristic Method proposes the use of a subjectively weighted combination of features as opposed to traditionally used feature weights generated using a corpus
Software Engineering Map vs Multimap in C++ STL The only difference between map and multimap in C++ is that map can only store unique key-value pairs while is multimap, no key value pair is unique.
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