Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: careercup/CtCI-6th-Edition-JavaScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: mxmxmarexmxm/CtCI-6th-Edition-JavaScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Jun 14, 2023

  1. refactor: Remove unnecessary second argument in conditional statement

    This commit refactors the code by removing the unnecessary second argument in the conditional statement. The condition "if (obj[str[i]] && obj[str[i]] >= 1)" has been simplified to "if (obj[str[i]])" for improved readability and code conciseness. This change helps to streamline the logic and remove unnecessary complexity from the codebase.
    mxmxmarexmxm authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    39abb85 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Create urlify-4.js

    Implemented the shortest approach to URLify a string. The URLify function utilizes the trim() method to remove leading and trailing spaces and the replaceAll() method to replace spaces with '%20'. This concise solution effectively replaces all spaces in the string with the desired URL encoding.
    mxmxmarexmxm authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    347ede3 View commit details
    Browse the repository at this point in the history
  2. Delete urlify-4.js

    mxmxmarexmxm authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    409d515 View commit details
    Browse the repository at this point in the history
Loading