Armstrong Number | gfg potd | 14-06-2024 | GFG Problem of the day

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 4

  • @RohitKumar-dz8dh
    @RohitKumar-dz8dh 4 місяці тому +1

    In problem statement mentioned TC is O(1) that is different from your TC as you are running loop upto digit length.

    • @CodeGenius316
      @CodeGenius316  4 місяці тому +3

      Nice question but bro...think carefully we are running a loop of size 3 only because it is mentioned that the number will be only a 3 digit number. Hence TC is O(1). Understood?☺️

    • @RohitKumar-dz8dh
      @RohitKumar-dz8dh 4 місяці тому +1

      @@CodeGenius316 understood 😊

  • @CodeGenius316
    @CodeGenius316  4 місяці тому +2

    If it helped you then please subscribe 😊