ace-han / ace-han.github.com Goto Github PK
View Code? Open in Web Editor NEWPersonal Website
Personal Website
There are a lot of Data Structures and we will talk about Tree structure
Tree Structure has many variations. And different variations have different pros
and cons
One of the use case is CMS (Content Management System) page management
Picture below shows a live edit for page management based on Tree structure
Try to implement at least two versions of Tree Data Structures to fulfill this constant page management requirement.
Relax, you could just take it as a question of how to design a menu that can satisfy constant edits/changes (add/delete/get/edit some node of the tree)...
Relax, you don't need to code, just some thoughts and diagrams to illustrate you design.
EER Diagram will be fine.
List pros and cons of your implementations respectively
Please refer to this doc to get familiar with A* Algorithm
.
Please implement a version of A* Algorithm
in H5 with below requirements
Weight Values
displaying, background and border colors, etc.jQuery
ONLYdiv
or span
will be finehtml
page available under some url
on the internet, so that people could just open their browser to see your workGood luck๐
Please read below stuff carefully, do your best to figure out the concept of Closure
and TRANSLATE below information in Chinese (yes, all the text in the picture)
So, you've already got the idea about Closure
๐
.
Let's have some test ๐.
Try to resolve below problem with the least changes you can in javascript
function preparePeopleId (people) {
var prefix = 'evil_ ';
for (var i = 0; i < people.length; i++) {
people[i]["id"] = function () {
return prefix + i;
}
}
return people;
}
var people = [{name:"Stallone", id:0}, {name:"Cruise", id:0}, {name:"Willis", id:0}];
var people = preparePeopleId(people);
people[0].id() // output 'evil_3'
people[1].id() // output 'evil_3'
people[2].id() // output 'evil_3'
// Why not 'evil_0', 'evil_1', 'evil_2'?
// Please edit the code to output 'evil_0', 'evil_1', 'evil_2' and post your answer as comment
Given
1 % 5 == 1
5 % 5 == 0
6 % 5 == 1
Please figure out a minimum positive integer X
, which can satisfy below
X % 8 == 0
X % 11 == 1
Please detail how you figure it out the answer as comment below ( Enumeration is off the table)
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.