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.

767+
Tutorials
4
Languages
100%
Free

Latest Tutorials

767 posts available

Palindrome Permutation — October 12, 2026

Given a string s, determine if it is a permutation of a palindrome. This means the characters of s can be rearranged to form a palindrome. Caseinsensitive: 'A' is considered the same as 'a'. Ignore nonalphanumeric characters: Spaces, punctuation, etc., should be disregarded. Example: Input: "Tact Co

October 11, 2026Read more →

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 →