Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
careercup
/
CtCI-6th-Edition-JavaScript-ES2015
Public
Notifications
You must be signed in to change notification settings
Fork
321
Star
836
Code
Issues
7
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Section 1 Improvements
- #6
#6
Open
nem035
wants to merge 8 commits into
careercup:master
careercup/CtCI-6th-Edition-JavaScript-ES2015:master
from
nem035:master
nem035/CtCI-6th-Edition-JavaScript-ES2015:master
Copy head branch name to clipboard
Conversation
Commits
8
(8)
Checks
Files changed
Open
Section 1 Improvements
#6
nem035
wants to merge 8 commits into
careercup:master
careercup/CtCI-6th-Edition-JavaScript-ES2015:master
from
nem035:master
nem035/CtCI-6th-Edition-JavaScript-ES2015:master
Copy head branch name to clipboard
Commits
Commits on Dec 29, 2016
ch1-q1: use semantically more appropriate for..of loop for iteration. This also handles non-BMP characters.
nem035
committed
3841c55
View commit details
Copy full SHA for 3841c55
Browse repository at this point
ch1-q2: Added semantically more appropriate for..of loop and updated both functions to accept strings, not arrays, as per question specification
nem035
committed
037d84a
View commit details
Copy full SHA for 037d84a
Browse repository at this point
ch1-q3: for..of loop
nem035
committed
05b4f10
View commit details
Copy full SHA for 05b4f10
Browse repository at this point
ch1-q4: use const for variables that do not change.
nem035
committed
899f499
View commit details
Copy full SHA for 899f499
Browse repository at this point
ch1-q6: added parameter descriptions/types
nem035
committed
d8d102f
View commit details
Copy full SHA for d8d102f
Browse repository at this point
ch1-q6: Converted the code to be more readable and aligned to the book. Added second solution that only creates the extra string if necessary.
nem035
committed
a10e2d1
View commit details
Copy full SHA for a10e2d1
Browse repository at this point
ch1-q8: Added the constant-space solution
nem035
committed
335fa42
View commit details
Copy full SHA for 335fa42
Browse repository at this point
Merge branch 'master' of https://github.com/careercup/CtCI-6th-Edition-JavaScript-ES2015
nem035
committed
acb0f3a
View commit details
Copy full SHA for acb0f3a
Browse repository at this point
You can’t perform that action at this time.