AYUSH MISHRA has Published 127 Articles

Python Program to Print Hollow Rectangle pattern

AYUSH MISHRA

AYUSH MISHRA

Updated on 05-May-2025 15:44:25

52 Views

When we start programming then printing different star patterns helps us build our logic and problem-solving skills. One of the easiest and beginner patterns is the hollow rectangle pattern. In this article, we are going to learn how we can print the hollow rectangle pattern using different approaches in Python. ... Read More

Python Program to count nodes in a binary tree

AYUSH MISHRA

AYUSH MISHRA

Updated on 02-May-2025 20:17:24

22 Views

In this article, we are going to learn how we can count the total number of nodes in a binary tree in Python, using different approaches. A binary tree is a data structure in which each node can have at most two children. The two children node of a binary ... Read More

Find the number that appears once, and the other numbers twice in Java

AYUSH MISHRA

AYUSH MISHRA

Updated on 30-Apr-2025 15:21:44

20 Views

In this problem, we are given an array of integers. In the given array, each element occurs two times except one element, which occurs only once. We have to find the number that appears only once. In this article, we are going to learn how we can find the number ... Read More

C++ Program to Rotate Array Left by One Position

AYUSH MISHRA

AYUSH MISHRA

Updated on 30-Apr-2025 14:36:53

267 Views

Rotating an array means shifting the elements of an array in a specific direction while maintaining their relative order. For example, if the array {6, 12, 18, 24, 30} is rotating it left once will result in {12, 18, 24, 30, 6}. In this article, we are given an array ... Read More

C++ Program to Find Sum of Leaf Node in Binary Tree

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Apr-2025 21:36:08

84 Views

We can find the sum of leaf nodes in a binary tree using an iterative and a recursive approach. This problem has many real-life applications, such as analyzing hierarchies, calculating final results in decision trees, or summing final nodes in various kinds of trees used in computer algorithms. In this ... Read More

How to Remove Array Items Recursively in Lodash?

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Apr-2025 20:25:06

1K+ Views

In this problem, we have to remove certain items from arrays; this removal of array items needs to be done in a recursive manner for nested arrays. Lodash is a popular JavaScript library that helps us achieve this easily. What is lodash? Lodash is a popular JavaScript library used to ... Read More

Find the Angle Between Hour and Minute Hands of a Clock in C#

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Apr-2025 16:11:20

81 Views

The calculation of the angle between the hour and minute hands of a clock is a common problem in Logical Reasoning and programming. This calculation is used in various applications, such as analog clock simulations, scheduling software, and time-based animations In this article, we are going to discuss how we ... Read More

Replace elements by its rank in the array in JavaScript

AYUSH MISHRA

AYUSH MISHRA

Updated on 24-Apr-2025 10:56:27

415 Views

In this problem, we are given an array, and we have to replace each element with its rank. The rank of an element is the position of the element when element of the array is arranged in sorted order. In this article, we are going to learn about various approaches ... Read More

C++ Program to Split a Circular Linked List into Two Halves

AYUSH MISHRA

AYUSH MISHRA

Updated on 24-Apr-2025 10:41:46

458 Views

A circular linked list is a type of linked list where the last node and first node are the same, forming a loop. There are many real-life applications of splitting a circular linked list into two halves for easier processing, load balancing, or efficient data manipulation. In this article, we ... Read More

Kth largest Element in a 2D matrix where each row and column is sorted in C++

AYUSH MISHRA

AYUSH MISHRA

Updated on 24-Apr-2025 10:33:13

636 Views

Finding the Kth largest element in a 2D matrix where each row and column is sorted is a common problem in computer science. This problem has many real-life applications, such as a ranking system, where we need to find the Kth highest score in a sorted dataset. In this article, ... Read More

1 2 3 4 5 ... 13 Next
Advertisements