Exit Function in C

Introduction In the C Programming Language, the exit function calls all functions registered with at exit and terminates the program. File buffers are flushed, streams are closed, and temporary files are deleted. The C library function void exit(int status) terminates the…

Floyd’s Cycle Detection Algorithm

In this post, we will be discussing Floyd’s cycle detection algorithm. So, let’s dive into it! Floyd’s cycle detection algorithm Floyd’s cycle-finding algorithm is a pointer algorithm that uses only two pointers, moving through the sequence…

List of Lists Editorial || Geekstocode

Difficulty Moderate Prerequisites Arrays Lists Problem You are given a positive integer N and an array A of size N. There are N lists L1,L2…LN Initially, Li=[Ai] You can perform the following operation any number of times as long as there are at least 2 lists:…

Palindrome Number in Java

In this post, we will discuss Palindrome Number in Java along with code too. So, let’s start without wasting time. Introduction In math, a palindrome is a number that reads the same forward and backward. For…

Strings in C

Hope you are doing great! In this post, we are going to discuss strings in C. We will try to give you, an overview of what strings are and where do we actually use strings….

Max Circular Sub-Array Sum

Given an array arr[] of N integers arranged in a circular fashion. Your task is to find the maximum circular subarray sum(max circular subarray sum). Input: N = 7 arr[] = {8,-8,9,-9,10,-11,12} Output: 22 Explanation: Starting from the last element of the array,…

Top 5 Programming Languages To learn In 2021

A complete knowledge and qualification in any of the computer language could help you a lifetime! If you’re comfortable with a language, then learning other programming languages will be a simple task.   But what if you don’t have any prior knowledge in any…