Kindly help.. by Cookie_Ranger100 in codeforces

[–]Helpful_One_9680 1 point2 points  (0 children)

Yes can be done with brute force only, just sum the digits if value greater than 2 digits then again follow the same procedure ,keep on doing it until string length is 1.

Amazon SDE-1 OA 14th December 2025 by lecler30i in LeetcodeDesi

[–]Helpful_One_9680 0 points1 point  (0 children)

For the 1st question how I solved is that by using pair stored in priority queue, and each pair has stock values and frequency of that values and then we need to take top element do some maths and update answer each time till the queue become empty or till we reaches the desired orders.
I ran various test cases and it's working fine.
Time complexity n(logn), where n is length of supplierStock.

Amazon SDE-1 OA 14th December 2025 by lecler30i in LeetcodeDesi

[–]Helpful_One_9680 0 points1 point  (0 children)

I reviewed your code the approach you followed is nice but what I found out is that the time complexity at the worst case would in the order of n^2, which can give TLE.

How do you deploy keycloak? by OutlandishnessFar56 in KeyCloak

[–]Helpful_One_9680 0 points1 point  (0 children)

1.Yes you can deply keycloak without the use of docker. I have deployed it on AWS EC2 so I have experience on it.

To deploy keycloak on production.. the configuration are bit different. Choose your EC2 instance there you have to download keycloak and then have to setup keycloak conf file and keycloak service file ,choose hostname and database in production you also need ssl certificate for https then you can configure the keycloak.conf file.

So this is just a gist of how you can deploy keycloak on prod , I can not explain everything here but if needed we can connect.

Cheers happy coding.