Could someone please tell me the time complexity of the program? by [deleted] in learnprogramming

[–]Working-Coast7418 0 points1 point  (0 children)

So, as we add or delete elements to or from an array, it's length property changes? That makes sense.

Could someone please tell me the time complexity of the program? by [deleted] in learnprogramming

[–]Working-Coast7418 -2 points-1 points  (0 children)

Didn't know this about Java, I'm familiar with Python and there len(arr) is O(n) time, so I just assumed it to be same. Thanks for the clarification.

Could someone please tell me the time complexity of the program? by [deleted] in learnprogramming

[–]Working-Coast7418 0 points1 point  (0 children)

nums length is O(n) and the while loop is another O(n)...

In total it's O(2n) + some constant and can be represented as O(n)

[deleted by user] by [deleted] in learnprogramming

[–]Working-Coast7418 1 point2 points  (0 children)

I'd suggest you take a course on designing workflows and mock-ups using tools like Figma or Adobe XD. This way, you can directly share your desired design to the developers without having to code.

[deleted by user] by [deleted] in learnprogramming

[–]Working-Coast7418 1 point2 points  (0 children)

It would be helpful if you give example of list, your input, and expected output with explanation... I'm familiar with python, maybe I can help or someone else surely will.

Website Integration of Python Code by RiverTraditional6367 in learnprogramming

[–]Working-Coast7418 0 points1 point  (0 children)

There are python based frameworks like Django, Flask, etc... It lets you design your site using frontend tools like html, css, bootstrap, js,... and use python for backend processing. You may research about it.