SPShivani Paswanincvani.hashnode.dev·Jun 22, 2023 · 1 min readLinear SearchThere are two ways to search an array for linear search. i. Access each element using for loop ii. Array indexing Time complexity- i. Best case- O(1) if element found on first index. ii. Worst case- O(n) element might be found on the last/ nth i...00
SPShivani Paswanincvani.hashnode.dev·Jun 14, 2023 · 2 min readCreating First Open Source Pull RequestI created my first opensource pull request. Looking from the top the world of open source seems tough to begin with. Let me tell you it is not, starting small, breaking the process into smaller actions and being consistent helps. I started with- Lea...00
SPShivani Paswanincvani.hashnode.dev·May 30, 2023 · 2 min readArrays Notesif we don't assign value to an integer array or (primitive types) the default value assigned is 0. If we don't assign value to the string array by default the value is “null”. it is a literal like none in Python. string str = null; is correct int ...00