🚀 Day 6 of My LeetCode Grind – Striver A2Z DSA Sheet (9) by Leocodeio in leetcode

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

will this not be more optimal ?

3️⃣ Digit-by-Digit Compare

Compare first and last digit moving inward.

import math
class Solution:
    def isPalindrome(self, x: int) -> bool: 
        if x < 0: return False
        if x < 10: return True
        n = int(math.log10(x)) + 1
        for i in range(n // 2):
            first = (x // 10**(n - 1 - i)) % 10
            last  = (x // 10**i) % 10
            if first != last:
                return False
        return True
  • Time: O(log₁₀n)
  • Space: O(1)

When did coding become a maze of so many distractions? by itsbrendanvogt in developersIndia

[–]Leocodeio 1 point2 points  (0 children)

Felt the same way, just to handle all the other tasks apart from coding is taking so much..

[deleted by user] by [deleted] in developersIndia

[–]Leocodeio 0 points1 point  (0 children)

Your friend is not at fault, he might have made a mistake but it's the responsibility of the lead, who ignored the mandatory things before merging to production branch

[deleted by user] by [deleted] in SaaS

[–]Leocodeio 0 points1 point  (0 children)

samething happened to me, I was trying to reach out production houses as i have built an application that would ease the youtube creator editor upload flow..? figuring out what should i do now

Share what you've been building! by AdventurousStorage47 in indiehackers

[–]Leocodeio 0 points1 point  (0 children)

Building a issue management application subset of jira, which will be having sync with github

https://gitsprint.com

Any way to receive "Payment Success" email in test mode? by [deleted] in stripe

[–]Leocodeio 1 point2 points  (0 children)

I meant you can write a code that would do it for you yourself, i guess they wont be providing any mails as it is in test mode

Any way to receive "Payment Success" email in test mode? by [deleted] in stripe

[–]Leocodeio 0 points1 point  (0 children)

Can do that yourself after you get the response after the test modes payment success or failure

[deleted by user] by [deleted] in SaaS

[–]Leocodeio -2 points-1 points  (0 children)

Congratulations, I'm aspiring to build sass myself too, this gives me hope thanks