* Modify if statement
Change the solution so an empty string is returned when num is less than 1 rather than less than 0 for consistency with instructions.
* Add test
New test checks that if num is 0, an empty string is returned
* Fix test
Fixing errors in newly proposed test that checks that empty string is returned when num is 0
* Modify intermediate solution
Changing if statement in intermediate solution to check whether num is less than 1 rather than less than 0. (Also adding curly brackets to that solutions if/else statements.)
* fix: removed unnecessary assert message arguments
* Remove random links from code
Seems that these got added by accident.
* Remove errors from solution in Portuguese version
* Remove errors from solution in Spanish version
* Remove errors from solution in Russian version
* Remove errors from solution in Arabic version
* Remove errors from solution in Chinese version
* fix: imgur to s3 for englsh guide without conflict
(cherry picked from commit 9c9f15abf4e755feab79ef7090dacdcf497ea7b6)
* fix: revert unrelated changes
Time Analysis Of AVL Tree:
AVL tree is binary search tree with additional property that difference between height of left sub-tree and right sub-tree of any node can’t be more than 1.
Algorithm Average Worst case
Space O ( n ) {\displaystyle O(n)} O(n) O ( n ) {\displaystyle O(n)} O(n)
Search O ( log n ) {\displaystyle O(\log n)} O(\log n) O ( log n ) {\displaystyle O(\log n)} O(\log n)
Insert O ( log n ) {\displaystyle O(\log n)} O(\log n) O ( log n ) {\displaystyle O(\log n)} O(\log n)
Delete O ( log n ) {\displaystyle O(\log n)} O(\log n) O ( log n ) {\displaystyle O(\log n)} O(\log n)
I ended up modifying the extension list to include the VIM keybind extension for those who want the experience as well as added Customization as one of the main features of the editor.
* Add comments and update callback arguments' names
I've added a few comments to the solution and given the callback arguments more descriptive names to clarify what the solution is doing, since this challenge seemed a little more complex than the previous challenges.
* Update guide/english/certifications/javascript-algorithms-and-data-structures/functional-programming/use-the-reduce-method-to-analyze-data/index.md
That makes absolute sense and is clearer. Thank you.
Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
* Update indentation to be two-spaced