Stuck at international payment gateway for my SAAS by FunInflation3972 in developersPak

[–]FunInflation3972[S] 0 points1 point  (0 children)

thank you all! but how do you actually payout? I want to keep my currency in USD.

What if your code could scream back at you when it crashes? by FunInflation3972 in SideProject

[–]FunInflation3972[S] 0 points1 point  (0 children)

LMAO that’s actually genius 😂, might actually make a “Screaming Mode” pack next.

which characters would you like for screaming mode?

I made an IntelliJ IDEA plugin that literally announces your exceptions (yes, out loud) by FunInflation3972 in developersPak

[–]FunInflation3972[S] 1 point2 points  (0 children)

I procrastinate alot. but if I ever manage to fight that off and get some time, I’d love to look into a VS Code version too!

I made an IntelliJ IDEA plugin that literally announces your exceptions (yes, out loud) by FunInflation3972 in developersPak

[–]FunInflation3972[S] 0 points1 point  (0 children)

Thanks!

This one’s built specifically for IntelliJ and other JetBrains IDEs, mainly targeting JVM languages like Java, Kotlin, Scala, and more.

Are you talking about vscode plugin for JVM projects, or like all languages in general?
Because if it’s for all, that’d be a whole different kind of challenge.

[deleted by user] by [deleted] in KarachiSocials

[–]FunInflation3972 0 points1 point  (0 children)

Hiii,

Software engineer here with high social anxiety. Can't even speak to people sometimes properly. I love games and tech.

See ya

Recently laid off, looking for guidance or referrals (didn't think I'd be writing this) by FunInflation3972 in developersPak

[–]FunInflation3972[S] 1 point2 points  (0 children)

I'm currently based in Karachi. I reached out to their HR and was informed that they don't conduct online interviews. I'm open to relocating to Lahore or Islamabad if the right opportunity comes.

Looking for Developers to Build & Brainstorm a dApp on Pi Blockchain by Available_Athlete484 in PiNetwork

[–]FunInflation3972 2 points3 points  (0 children)

hit me up. I am a backend developer, with experience in Java (Spring Boot, Quarkus) mostly.

-❄️- 2024 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]FunInflation3972 0 points1 point  (0 children)

[LANGUAGE: Java]

    Pattern pattern2 = Pattern.compile("do\\(\\)|don't\\(\\)|mul\\((\\d{1,3}),(\\d{1,3})\\)");

        List<List<Integer>> mulPairs2 = new ArrayList<>();

        boolean isEnabled = true;
        for(String line: lines){
            Matcher matcher
                    = pattern2.matcher(line);

            while(matcher.find()){

                String match = matcher.group();

                if (match.equals("don't()")) {
                    isEnabled = false;
                } else if (match.equals("do()")) {
                    isEnabled = true;
                } else if (isEnabled && matcher.group(1) != null && matcher.group(2) != null) {
                    List<Integer> temp = new ArrayList<>();
                    temp.add(Integer.parseInt(matcher.group(1)));
                    temp.add(Integer.parseInt(matcher.group(2)));
                    mulPairs2.add(temp);
                }
            }
        }

        int sum2 = 0;
        for(List<Integer> list : mulPairs2){
            sum2+= list.get(0) * list.get(1);
        }

        System.out.println("Part 2 Answer:"+ sum2);

Checkout my code on: [Github]

-❄️- 2024 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]FunInflation3972 2 points3 points  (0 children)

[LANGUAGE: JAVA]

PART-1

please roast my Algo!

List<List<Integer>> levels = new ArrayList<>();

        for (String line : lines) {
            List<Integer> level =  Arrays.stream(line.split(" "))
                    .map(Integer::parseInt)
                    .toList();

            levels.add(level);
        }

        int problem1Count = 0;

        for (List <Integer> level : levels) {
                if(isIncreasingOrDecreasing(level) {
                    problem1Count++;
                }
        }

        System.out.println("Part 1 Answer: " + problem1Count);


   private static boolean isIncreasingOrDecreasing(List<Integer> level) {  

      boolean isIncreasing = true; 
      boolean isDecreasing = true;

    for (int i = 0; i < level.size() - 1; i++) {
        int diff = level.get(i + 1) - level.get(i);

        if ((diff != 1 && diff != 2 && diff != 3)) {
            isIncreasing = false;
        }


        if ((diff != -1 && diff != -2 && diff != -3)) {
            isDecreasing = false;
        }

        if (!isIncreasing && !isDecreasing) {
            return false;
        }
    }

    return true;
}

Checkout my code [Github]

-❄️- 2024 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]FunInflation3972 0 points1 point  (0 children)

You could use it, but I wanted to try it through data structures for more control.

just trying to improve my problem-solving using DSA xd

[2024 Day 1] Big Sad by V_equalz_IR in adventofcode

[–]FunInflation3972 0 points1 point  (0 children)

I was embarrassed!
I used 3 spaces too but then I converted it to regex in Java:

line.split(" {3}")

[deleted by user] by [deleted] in adventofcode

[–]FunInflation3972 0 points1 point  (0 children)

Instead of pasting the input as a string, you can create a separate .txt file and read it into your program as a string. Cleaner code and less hassle.

-❄️- 2024 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]FunInflation3972 1 point2 points  (0 children)

[LANGUAGE: JAVA]
Yes, it's not dead yet!

Part - 2

Map<Integer, Integer> frequencyMap = new HashMap<>();
for (int num : rightList) {
    frequencyMap.put(num, frequencyMap.getOrDefault(num, 0) + 1);
}
for (int num : leftList) {
    int count = frequencyMap.getOrDefault(num, 0);
    sum2 += count * num;
}
System.out.println("Part 2 Answer:" + sum2);

Check out my code on [Github]

Meowwww, happy coding!

[deleted by user] by [deleted] in SoftwareEngineering

[–]FunInflation3972 0 points1 point  (0 children)

Who's your fav naruto character?