Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
series
515+ articles
Bitwise-XOR
443+ articles
Data Structures
150+ articles
series-sum
125+ articles
triangle
124+ articles
maths-cube
39+ articles
triangular-number
14 posts
Recent Articles
Paths of Triangular Number in a Binary Tree
Last Updated: 23 July 2025
Given a Binary Tree, the task is to output the Count of the number of paths formed by only a Triangular number. Xth Triangular number is the sum of the first X natural num...
read more
Tree
Geeks Premier League
DSA
Preorder Traversal
Binary Tree
triangular-number
Geeks Premier League 2023
Find the XOR of smallest and largest triangular number in a given range
Last Updated: 22 August 2023
Given a range, find the XOR of the smallest and largest triangular numbers within that range.A triangular number is a number that can be represented as the sum of consecut...
read more
DSA
Bitwise-XOR
Data Structures
triangular-number
Replace every node in a linked list with its closest triangular number
Last Updated: 23 July 2025
Given a singly linked list, the task is to replace every node with its closest triangular number.Examples:Input: 3 - 9 - 21 - 25 - NULLOutput: 3 - 10 - 21 - 28 - NULLExpla...
read more
Linked List
DSA
Linked Lists
Data Structures
triangular-number
Sum of all possible strings obtained by removal of non-empty substrings
Last Updated: 23 July 2025
Given numerical string str consisting of N integers, the task is to find the sum of all possible resulting strings after removing non-empty substrings.Examples:Input: str ...
read more
Strings
Pattern Searching
Mathematical
DSA
prefix-sum
substring
triangular-number
Index of smallest triangular number with N digits
Last Updated: 15 July 2025
Given a number N, the task is to find the index of smallest triangular number with N digits.A number is termed as a triangular number if we can represent it in the form of...
read more
Mathematical
DSA
number-digits
triangular-number
Minimum time to reach a point with +t and -t moves at time t
Last Updated: 29 November 2023
Given a positive coordinate 'X' and you are at coordinate '0', the task is to find the minimum time required to get to coordinate 'X' with the following move :At time 't',...
read more
Greedy
Mathematical
DSA
triangular-number
First triangular number whose number of divisors exceeds N
Last Updated: 11 July 2025
Given a number N, find the first triangular number whose number of divisors exceeds N. Triangular numbers are sums of natural numbers, i. e., of the form x*(x+1)/2. First ...
read more
DSA
Prime Number
divisors
triangular-number
Centered triangular number in PL/SQL
Last Updated: 11 July 2025
Prerequisite - PL/SQL introductionIn PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we decl...
read more
Misc
SQL
SQL-PL/SQL
triangular-number
Sum of Sums first n natural numbers
Last Updated: 11 July 2025
Given a positive integer n. The task is to find the sum of the sum of first n natural number.Examples:Input: n = 3Output: 10Explanation:Sum of first natural number: 1Sum o...
read more
Mathematical
DSA
series
series-sum
triangular-number
Centered triangular number
Last Updated: 29 March 2023
Given an integer n, find the nth Centered triangular number.Centered Triangular Number is a centered polygonal number that represents a triangle with a dot in the center a...
read more
Mathematical
DSA
series
triangular-number
Squared triangular number (Sum of cubes)
Last Updated: 11 July 2025
Given a number s (1 = s = 1000000000). If s is sum of the cubes of the first n natural numbers then print n, otherwise print -1.First few Squared triangular number are 1, ...
read more
Misc
Mathematical
DSA
series
series-sum
maths-cube
triangular-number
Program to print triangular number series till n
Last Updated: 08 February 2023
A triangular number or triangle number counts objects arranged in an equilateral triangle, as in the diagram on the right. The n-th triangular number is the number of dots...
read more
Misc
Mathematical
DSA
series
triangular-number
Sum of the series 1, 3, 6, 10... (Triangular Numbers)
Last Updated: 16 August 2022
Given n, no of elements in the series, find the summation of the series 1, 3, 6, 10....n. The series mainly represents triangular numbers.Examples:Input: 2Output: 4Explana...
read more
Misc
Mathematical
DSA
triangle
series
triangular-number
Triangular Numbers
Last Updated: 23 July 2025
A number is termed a triangular number if we can represent it in the form of a triangular grid of points such that the points form an equilateral triangle and each row con...
read more
Mathematical
DSA
triangle
series
triangular-number