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.

766+
Tutorials
4
Languages
100%
Free

Latest Tutorials

766 posts available

Single Number — October 11, 2026

Given a nonempty array of integers, every element appears twice except for one. Find that single one. Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? Examples: Input: [2,2,1] Output: 1 Input: [4,1,2,1,2] Output: 4

October 10, 2026Read more →

Group Anagrams — October 10, 2026

Given an array of strings strs, group the anagrams together. You can return the answer in any order. 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.\n\n Constraints:\n 1 <= strs.length <= 10^4\n 0

October 9, 2026Read more →

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 →