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.

764+
Tutorials
4
Languages
100%
Free

Latest Tutorials

764 posts available

Valid Anagram — October 9, 2026

Given two strings s and t, determine if t is an anagram of s. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Constraints 1 <= s.length, t.length <= 5 10^4 s and t consist of lowercase English lett

October 8, 2026Read more →

Two Sum — October 8, 2026

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. The order of the returned indices does not matter. Constraints: 2 <= n

October 7, 2026Read more →

Longest Common Prefix — October 7, 2026

Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "".All given inputs are in lowercase English letters az. Constraints 0 <= strs.length <= 200 0 <= strs[i].length <= 200 strs[i] consists of only lowercase Englis

October 6, 2026Read more →