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