Aditya Chatterjee's Blog, page 21
August 11, 2023
Next Greater Element using Stack
Given an array of integers, arr, of length N. The task is to find the Next Greater Element (NGE) for each element in the array. We will solve this problem completely in this OpenGenus article.
For a given element arr[i], the Next Greater Element is the first element to the right of arr[i] that is greater than arr[i]. If there is no such element, the Next Greater Element for tha...
Basics of Scala Programming
Reading time: 18 minutes | Coding time: 22 minutes
IntroductionScala, short for "Scalable Language," is a modern programming language that blends object-oriented and functional programming paradigms. It was designed to address the limitations and complexities of Java while offering a concise, expressive, and flexible syntax. Developed by Martin Odersky and his team, Scala was first released in 2003 and has since gained popularity in various domains including web development, data analysis, an...
Memory Game in Java
Memory games are popular brain-training exercises designed to challenge and improve our memory and cognitive abilities. These games typically involve matching pairs of identical items hidden among a set of cards or tiles, which are then shuffled and placed face down. Players must remember the position of each item and make matches by turning over two cards at a time. The objective is to find all the matching pairs by memorizing the location of the items in the shortest time and with the fewest a...
August 10, 2023
Svelte [Introduction with demo app]
![Svelte [Introduction with demo app]](https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/hostedimages/1694641578i/34718067.png)
In this article on OpenGenus, we will explore an introduction to building static web applications using Svelte framework.
Table of contents:
IntroductionFeatures of SvelteInstallationBuilding your First AppQuizIntroductionSvelte is an open-source frontend framework created by Rich Harris and is currently maintained and developed by a large group of developers. The main advantage is that it shifts a lot of the work that happens at runtime to compile-time, resulting in more efficient code....
Ember JS [Introduction with demo app]
In this article on OpenGenus, we will explore an introduction to building modern web applications using Ember JS.
Table of contents:
IntroductionFeatures of Ember JSInstallationBuilding your First AppQuizIntroductionEmber JS is an open-source JavaScript framework for developing web applications. It follows the Model-View-ViewModel (MVVM) architectural pattern and reduces the need for manual configuration and decision-making. Ember JS is used to increase the productivity and decrease the ...
August 9, 2023
50 Interview questions on C++ Struct
In this article at OpenGenus, we have presented 50 interview questions based on struct (Structure) in C++ and C Programming Language. Each question is provided with the answer and detailed explanation.
Table of ContentMultiple Choice QuestionsDescriptive QuestionsPractical QuestionsMultiple Choice Questions1. Which of the following statements is true about C++ structs?a) Structs can have member functions.
b) Structs can only have member variables.
c) Structs can inherit from other struc...
Building Ping Pong Game with Pygame in Python
Ping pong, a classic arcade game loved by generations, has been a source of entertainment and competition for players of all ages. Now, imagine creating your own version of this beloved game and taking it to new heights. With the power of Python and the Pygame library, you can embark on this exciting journey of coding your very own ping pong game.
In this article at OpenGenus, we will walk you through the process of building a simple yet engaging ping pong game using Pygame.
Training process of Deep Learning models

Deep learning has revolutionized the field of artificial intelligence by enabling machines to learn and make decisions on their own, similar to the human brain. The training process of deep learning models is a crucial aspect of this technology, as it determines the model's ability to generalize and perform well on unseen data. In this article at OpenGenus, we will delve into the training process, explore key terms such as epoch and Adam optimizer, and briefly discuss how the process va...
Task Scheduler - Algorithm and Data Structure Project [in JavaScript]
In this article at OpenGenus, we are going to build a task scheduler project which implements a priority queue, and we will use a min heap data structure to manage the tasks based on their priorities.
Table of ContentsWhat is a task scheduler?
Task Scheduler methods
addTask()getNextTask()deleteTask()The heapify algorithm
heapifyUp()heapifyDown()Analysis
1. What is a task scheduler?A task scheduler is a tool where the user adds tasks with the task name, the task priority, and...
August 8, 2023
6 Uses of Deep Learning in Laptops
Deep Learning, a powerful offshoot of machine learning and artificial intelligence, has been revolutionizing multiple industries, with laptops being one of them. This article explores the profound applications of deep learning i...


