Skip to main content

Posts

Tic Tac Toe Offline (2 player) - Privacy Policy

  Privacy Policy This privacy policy applies to the Tic Tac Toe Offline (2 player) app (hereby referred to as "Application") for mobile devices that was created by Ayush Agrawal (hereby referred to as "Service Provider") as a Free service. This service is intended for use "AS IS". Information Collection and Use The Application collects information when you download and use it. This information may include information such as Your device's Internet Protocol address (e.g. IP address) The pages of the Application that you visit, the time and date of your visit, the time spent on those pages The time spent on the Application The operating system you use on your mobile device The Application does not gather precise information about the location of your mobile device. The Service Provider may use the information you provided to contact you from time to time to provide you with important information, required notices and marketing promotions. For a better ex...
Recent posts

Minimise Z (Coding Ninjas)

Problem statement Given an array ‘A’. Your task is to choose any two different elements of the array say ‘X’ and ‘Y’, such that ‘Z’ is minimum possible. Where ‘Z’ = ‘X’ × ’Y’. Return the minimum possible value of ‘Z’. Example: ‘N’ = [5, 3, 9, 6, 3] ‘X’ can be chosen as 3(index 1) and ‘Y’ can be chosen as 3(index 4). 'Z' = 3*3 = 9. No other combination can have a smaller value of ‘Z’. Detailed explanation  ( Input/output format, Notes, Images ) Constraints: 1 <= ‘T’ <= 10 2 <= ‘N’ <= 10^5 -10^4 <= ‘A[i]’ <= 10^4 Time Limit: 1 sec Sample Input 1: 2 6 -6 10 -1 2 10 -1 7 -7 5 -1 -4 -10 -8 10 Sample Output 1: -60 -100 Explanation of sample input 1: For 1st Testcase : ‘X’ can be chosen as -6(index 0) and ‘Y’ can be chosen as 10(index 1). 'Z' = -6*10 = -60. No other combination can have a smaller value of ‘Z’. For 2nd Testcase : ‘X’ can be chosen as -10(index 4) and ‘Y’ can be chosen as 10(index 6). 'Z' = -10*10 = -100. No other combination can ...

UPI Chalega: The Future of Digital Payments in India

  If you are looking for a fast, easy, and secure way to make payments online, you might want to try UPI. UPI stands for Unified Payments Interface, a system that allows you to transfer money instantly from your bank account to any other bank account or merchant using a mobile app. UPI is developed by the National Payments Corporation of India (NPCI), a government-backed organization that aims to promote digital payments in the country. How does UPI work? To use UPI, you need to download a UPI app from your app store. There are many UPI apps available, such as Google Pay, PhonePe, Paytm, BHIM, etc. You can choose any app that you like, as they are all interoperable, meaning you can send and receive money from any other UPI app. Once you download the app, you need to link your bank account to it by entering your bank details and verifying your mobile number. You will also create a UPI ID, which is a unique identifier that you can use to make and receive payments. A UPI ID looks like...

Cricket Chronicles: New Zealand vs South Africa

  Greetings, cricket enthusiasts! Let’s dive into the thrilling Test match between New Zealand and South Africa that recently concluded. This match was a testament to the strategic brilliance and exceptional skills of both teams. Team Line-ups New Zealand, also known as the Black Caps, entered the series with a robust team. Former captain  Kane Williamson  was back in action, along with  Tom Blundell  and  Kyle Jamieson , who had recovered from their injuries. The pace attack was led by the current skipper,  Tim Southee , and supported by  Matt Henry  and  Neil Wagner . South Africa, on the other hand, had a relatively inexperienced team due to the absence of their top players who were engaged in franchise cricket back home. The squad included eight players who were yet to debut in Test cricket, including the captain,  Neil Brand . The Showdown The first Test took place at the Bay Oval in Mount Maunganui.  Rachin Ravindra , a y...

Budget 2024-25

  Empowering Farmers, Women, and Youth: Highlights of the Interim Budget 2024-25 Introduction The Interim Budget for the year 2024-25 was presented by Nirmala Sitharaman, the Finance Minister of India, with a focus on empowering farmers, women, youth, and the underprivileged population. The government aims to increase farmers' income, empower women, and create more employment opportunities for the youth. The Interim Budget was presented ahead of the upcoming Lok Sabha elections, and the full budget will be presented in July after the formation of the new government. Fostering Positive Economic Changes In her pre-election budget speech, Finance Minister Sitharaman highlighted the significant positive changes witnessed in the Indian economy over the past decade. She emphasized that the people of India are hopeful and looking towards a better future with optimism and choices. Under the leadership of Prime Minister Narendra Modi, the government has focused on inclusive development a...

The Importance of Ram Mandir: A Historic Moment for India

  Introduction The construction of Ram Mandir in Ayodhya, India has been a topic of great controversy and debate. The significance of this temple goes beyond religious beliefs and holds a deep historical and cultural value for the nation. In this blog, we will explore the importance of Ram Mandir from various perspectives and shed light on the reasons why it holds such a special place in the hearts of millions of Indians. The Historic Proof The history of Ayodhya and the existence of Ram Mandir date back centuries. According to the epic tale of Ramayana, Bhagvan Ram returned to Ayodhya after 14 years of exile, and it is during his reign that the city flourished. However, around 500 years ago, the house of Bhagvan Shri Ram was attacked and a mosque, known as Babri Masjid, was built on the site. Historical evidence has shown that the original name of the mosque was Masjid-e-Janamsthan, which translates to "mosque at the birthplace." This itself indicates that the mosque was...

Recursion: Solving Problems through Recursive Functions

  Problem 1: Print Your Name n Times Let's start with a simple problem: printing your name n times using recursion. The generic way to achieve this would be to run a for loop and print your name n times. However, in this case, we want to use recursion. To solve this problem, we will define a recursive function called f(i, n) . The function takes two parameters: i , which represents the current iteration, and n , which represents the total number of times to print your name. We start by taking the input of n from the user. Then, we call the function f(0, n) , which will recursively print your name n times. Here's how the function works: Check if i is greater than n . If it is, return. Print your name. Call the function f(i + 1, n) to recursively print your name n times. By following these steps, we can easily print your name n times using recursion. Problem 2: Print Numbers from 1 to n Next, let's solve a problem where we need to print numbers from 1 to n in...