play-with-webssh

try with pipenvwebssh pipenv install virtualenv12345678910111213141516171819202122232425262728293031323334353637鉂??pipenv --python 3.8.9Creating a virtualenv for this project...Pip...

Read More

need-write-more

last time I come to this site is 2019, 3 years passed. I need to come here more often and write more. let’s see.

Read More

zookeeper-distributed-lock

Analysis of an implementation of zookeeper distributed lockreferencelink the mechanism of zookeeper distributed locklet’s assume there are two clients try to get the zk’s lockas we...

Read More

sql-select-null-usage.md

select null exampleI saw a sql code snippet as this: 123456789101112131415161718192021222324252627 select * from ( select v.empno,v.ename,v.job,v.mgr,v.hiredate, v.sal,...

Read More

word-break-ii.md

leetcode workd break II with scala solutiontop-down DP1234567891011121314151617181920212223242526272829303132def wordBreak(s: String, wordDict: List[String]): List[String] = {...

Read More

scala-foldLeft-vs-foldRight.md

Definition of foldLeft and foldRightfoldLeft please notice the definition of op : (op: (B, A) => B) here, A is the element of the caller, B is the intermedia result of function...

Read More

scala-PriorityQueue-ordering-explain

at my previous code, i used PriorityQueue to solve this issue. I am not that faimiliar with scala syntax, so it takes me some time to figure out how th customized the comparator. f...

Read More

642-design-search-auto-complete-system

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949...

Read More

scala-for-the-impatient-chapt-5-ex.md

ex 1123456789101112131415161718192021/** * ex 1 * * Improve the Counter class in Section 5.1, “Simple Classes and Parameterless Methods,” * on page 55 so that it doesn’t tu...

Read More

scala-for-the-impatient-chapter-4-ex.md

firstly put the time profile function and print function 1def prn(x: TraversableOnce[_]) = println(x.mkString(x.getClass.getSimpleName + "(", ", ", ")"...

Read More