Software Engineering Java Time Package This article brings a brief introduction to some classes available by the Date/Time Java API, with samples to the main characteristics of each one of them.
Software Engineering Detect Operating System in C To check the operating system of the host in a C or C++ code, we need to check the macros defined by the compiler (GNU GCC or G++). For example, on Windows platform, the compiler has a special macro named _WIN32 defined.
Algorithms 8 Queens Problem using Branch and Bound In the backtracking approach of solving 8 queens problem, we maintain an 8x8 binary matrix for keeping track of safe cells and update it each time we place a new queen.
Algorithms Largest rectangular sub matrix having sum divisible by k This article is about finding the size of the largest area of the rectangular sub-matrix such that the sum of the elements is divisible by k.
Software Engineering #error directive in C #error is a preprocessor directive in C which is used to raise an error during compilation and terminate the process.
Software Engineering Compilation process in C (from code.c to a.out) Compilation is the process of converting a code in a programming language (C in our case) to machine code. In this process, the code goes through different steps depending upon the compiler and language. We will explore the compilation steps in C.
Software Engineering Check if a header file in C has been included To check if an header file has been included or not in a C or C++ code, we need to check if the macro defined in the header file is being defined in the client code.
Machine Learning (ML) Random Forests using Scikit-learn In this article, we will implement random forest in Python using Scikit-learn (sklearn). Random forest is an ensemble learning algorithm which means it uses many algorithms together
Algorithms Calculating Permutation Coefficient Given n and k, we will calculate permutation coefficient using dynamic programming in O(N * K) time complexity.
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.