We do not collect any user data nor do we capture your device details. All activites on the platform are anonymous
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Privacy Policy for All Shopping Apps | |
**Last Updated:** March 9, 2025 | |
This Privacy Policy explains how **All Shopping Apps** ("we," "us," or "our") collects, uses, shares, and protects your personal information when you use our mobile app, website, or services. By using **All Shopping Apps**, you agree to the terms outlined below. | |
--- | |
## 1. Information We Collect | |
We collect the following types of information to provide and improve our services: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Denominations { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
PrintWriter wr = new PrintWriter(System.out); | |
int T = Integer.parseInt(br.readLine().trim()); | |
for (int t_i = 0; t_i < T; t_i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IMPORT LIBRARY PACKAGES NEEDED BY YOUR PROGRAM | |
// SOME CLASSES WITHIN A PACKAGE MAY BE RESTRICTED | |
// DEFINE ANY CLASS AND METHOD NEEDED | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
// CLASS BEGINS, THIS CLASS IS REQUIRED | |
public class BuildBridges { | |
static int[] id = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class TruckAndLoad | |
{ | |
ArrayList<Integer> IDsOfPackages(int truckSpace, | |
ArrayList<Integer> packagesSpace) | |
{ | |
Map<Integer, Integer> map = new HashMap<>(); | |
int max = Integer.MIN_VALUE; | |
truckSpace -= 30; | |
ArrayList<Integer> list = new ArrayList<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class PaperBoyProblem { | |
public static void main(String args[]) throws Exception { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
int t = Integer.parseInt(br.readLine().trim()); | |
for (int i_t = 0; i_t < t; ++i_t) { | |
String[] temp = br.readLine().split(" "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AtoI { | |
public int myAtoi(String str) { | |
int t = 0; | |
int i = 0; | |
while(true) { | |
while(i < str.length() && str.charAt(i) == ' ') i++; | |
int sign = 1; | |
if(i < str.length() && str.charAt(i) == '-') { | |
sign = -1; | |
i++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MaximumDifference { | |
static int maxDifference(int[] a) { | |
if(a == null || a.length < 2) { | |
return -1; | |
} | |
int currentMin = a[0]; | |
int maxDiff = -1; | |
for(int i = 1; i < a.length; i++) { | |
if(a[i] < currentMin) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class CountingValleys { | |
// Complete the countingValleys function below. | |
static int countingValleys(int n, String s) { | |
int currentDepth = 0; | |
int valleys = 0; | |
for(int i = 0; i < n; i++){ | |
int step = s.charAt(i) == 'D' ? -1:1; | |
currentDepth += step; | |
if(currentDepth == -1 && s.charAt(i) == 'D') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class CountingValleys { | |
// Complete the countingValleys function below. | |
static int countingValleys(int n, String s) { | |
int currentDepth = 0; | |
int valleys = 0; | |
for(int i = 0; i < n; i++){ | |
int step = s.charAt(i) == 'D' ? -1:1; | |
currentDepth += step; | |
if(currentDepth == -1 && s.charAt(i) == 'D') { |
NewerOlder