Free programming tutorials — updated regularly

Master Programming with Simple,Clear Tutorials

Learn Java, C#, C, C++ and more with 1200+ free tutorials. No fluff, just code.

755+
Tutorials
4
Languages
100%
Free

Latest Tutorials

755 posts available

Find the Missing Number — October 5, 2026

Given an array nums containing n distinct numbers in the range [0, n], your task is to return the only number in the range that is missing from the array. The array nums contains n distinct numbers. The numbers are guaranteed to be in the range [0, n]. n represents the length of the array nums. Exam

October 4, 2026Read more →

Reverse Words in a String — October 4, 2026

Given an input string s, reverse the order of the words. A word is defined as a sequence of nonspace characters. Words in s will be separated by at least one space. The reversed string should not contain leading or trailing spaces. Multiple spaces between two words should be reduced to a single spac

October 3, 2026Read more →

Count Good Pairs — October 3, 2026

Given an array of integers nums, a pair (i, j) is called a good pair if nums[i] == nums[j] and i < j. Return the number of good pairs. Input: An array of integers nums. Constraints: 1 <= nums.length <= 100 1 <= nums[i] <= 100 Output: An integer representing the total count of good pairs. Example: In

October 3, 2026Read more →

C nested if statements

This statement allows the user to use if block inside the other if block. And the inner if statement is executed only if the outer if statement’s condition is true. Syntax Syntax of nested if statement in C: nested if Flowchart: Example of nested if statement in C: The output of nested if

June 12, 2026Read more →

Java Program to Remove all the Vowels from a String

This post shows, How to remove all vowels from a string in java? with the help of replaceAll() method. Remove vowels from a string in java: Explanation:Removing vowels in java is easy, we will take the user input with the help of a Scanner class. we will use replaceAll() which takes in two para

June 12, 2026Read more →