Challenges to complete daily
nush100 / dailychallenges Goto Github PK
View Code? Open in Web Editor NEWChallenges to complete daily
Challenges to complete daily
Line 4 in 00e8fda
It works ๐โ๐
HINT: You can improve the code by adding a RegEx to check whether the character is alphabetic or not.
Line 3 in 2ff3611
[REQUIRED]
1- Use 'let' and 'const' instead of 'var'
2- The code is not formatted
3- The Code is not commented
4- Don't use console.log() inside the code, you can use 'return' to return output from the function
5- Can you handle some base conditions, like if a user adds an EMPTY string or input a non-string thing.
[OPTIONAL]
6 - Can you calculate the time and space complexity of your code
Line 40 in a1b63c5
Line 12 in 00e8fda
1- time complexity if O(N^2), this can be done with O(N)
Line 10 in 2ac6317
This will give O(M*N) ~ O(N), can you optimize it. I feel no need to have an inner loop. You can do the thing using one loop.
Line 40 in a1b63c5
1 - How to handle exceptions is JS.
DailyChallenges/Day0/Day0.html
Line 6 in 1202554
Line 35 in de3b89b
include() time complexity: O(N)
Since you are using include inside a for loop, it will take O(N^2), which is not linear.
You can optimize this solution without using the include(). ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.