Skip to content
Program to Validate Username

Program to Validate Username

Today’s problem, write a program to validate username, similar to the Instagram username validation program, I came up with a simple solution in C++. The problem is very simple, we just need to take care of the rules and limits stated below. Conditions and Rules for Username Can contain Numbers… Read More »Program to Validate Username

Missing Number in Array LeetCode

Find Missing Number in Array LeetCode

Missing Number LeetCode, from the given array we have to find the missing numbers and we were asked to solve this with O(1) extra space complexity i.e constant space and O(n) runtime complexity. This means that we should not use extra space, it should be constant.

Program for Linked List

Linked List Code in C++

Linked List is one of the most important data structures and understanding how it works is easier than you think, this post explains the Linked List code in C++. Important Operations on a Linked List As you can see below we use a separate class for Linked List this helps… Read More »Linked List Code in C++