JobTools Update: Adding Min Salary Criteria + Company List!

jobtools.png
Credit: Logo Designed By @loydjayme25

Job Seeking using JobTools

What is the project about?

JobTools is the first Job Seeking Chrome Extension that is based on ZipRecruiter API. I have previously implemented a PHP Wrapper API for job searching and it is integrated in the online tool but I think Chrome Extension is a perfect application entry point that users can easily access.

Previous Contributions:

Version 0.0.2

  1. Adding Min Salary Criteria
  2. Adding Company List
  3. New Logo designed by @loydjayme25

Commits: here and here

Screenshots

You can specify the minimal salary criteria.
image.png

A list of companies are extracted from the job search result.
image.png

Technology Stack

Any applications that can be written in Javascript will eventually be re-written in Javascript. Chrome Extension is an ideal place to host your Javascript applications.

Roadmap

  • FilterJobsBySalaryRange
  • FilterJobsByIndustry
  • Integrated with Google Maps
  • Add Jobs to Favorite

How to contribute?

Github: https://github.com/DoctorLai/JobTools

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

Find Your Perfect Job by using JobTools:

Install via Google Webstore: https://chrome.google.com/webstore/detail/job-tools/ghclpimmbjepihhlnklkiemncamklkii

Thank you! You may also like: SteemIt Tools, Bots, APIs and Tutorial



Posted on Utopian.io - Rewarding Open Source Contributors


This page is synchronized from the post: JobTools Update: Adding Min Salary Criteria + Company List!

【第 贰贰贰 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-04-04)

第 222 期日报 (No. 222 Daily Report)
生成时间: 2018-04-04 10:10:02 (UTC)
报告时间: 2018-03-31 10:10:02 (UTC) - 2018-04-01 10:10:02 (UTC)
上一期第 221 期日报 Last Report - No. 221 Daily Report

@arcange SteemSQL.com

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天和30天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 and 30 days sorted by potential payout
@dailychina 提供了中文区更多的数据榜单

CN 区优质内容点赞机器人每天可能会为这30名作者点赞!
CN Good-Content-Bot may upvote these authors every day!

2018-04-04 Daily Top Authors in [CN] (Last 30 Days) 每日cn社区之 过去30天收益排行榜

The following is the list of top 30 daily authors in [CN] in the last 30 days sorted by payout.
| 排名 Rank| 作者 Author| 发贴数 Posts| 点赞数 Votes| 收益 Payout| 平均每贴收益 Average Payout Per Post| 平均每天收益 Average Daily Payout|
|:–:|:–:|:–:|:–:|:–:|:–:|:–:|
| 1|@darksaint| 105|1325|6201.05|59.06|206.70|
| 2|@chinadaily| 120|6469|3366.43|28.05|112.21|
| 3|@oflyhigh| 59|9208|3277.93|55.56|109.26|
| 4|@leftbank| 17|3338|2456.39|144.49|81.88|
| 5|@twinkledrop| 22|1171|1858.28|84.47|61.94|
| 6|@deanliu| 41|4775|1684.41|41.08|56.15|
| 7|@rea| 17|2430|1544.31|90.84|51.48|
| 8|@michaelleeld| 29|675|1524.60|52.57|50.82|
| 9|@amylee| 17|729|1467.73|86.34|48.92|
| 10|@travelgirl| 59|3009|1420.55|24.08|47.35|
| 11|@justyy| 63|6898|1303.48|20.69|43.45|
| 12|@helene| 24|3122|1086.88|45.29|36.23|
| 13|@blackbunny| 31|2294|1057.20|34.10|35.24|
| 14|@rivalhw| 41|3459|1014.33|24.74|33.81|
| 15|@joythewanderer| 31|3860|1004.15|32.39|33.47|
| 16|@ety001| 21|955|982.03|46.76|32.73|
| 17|@fr3eze| 29|2691|937.64|32.33|31.25|
| 18|@ace108| 161|10989|896.75|5.57|29.89|
| 19|@sweetsssj| 3|4288|859.26|286.42|28.64|
| 20|@htliao| 60|7240|855.38|14.26|28.51|
| 21|@cha0s0000| 14|1008|730.59|52.18|24.35|
| 22|@brianlam| 13|233|667.27|51.33|22.24|
| 23|@feeel| 18|621|664.23|36.90|22.14|
| 24|@lawrenceho84| 46|525|595.06|12.94|19.84|
| 25|@helgachen| 10|255|566.70|56.67|18.89|
| 26|@rosatravels| 87|4827|541.56|6.22|18.05|
| 27|@corbettreport| 5|803|524.79|104.96|17.49|
| 28|@jrvacation| 27|2506|520.43|19.28|17.35|
| 29|@softmetal| 62|2614|493.07|7.95|16.44|
| 30|@serenawu| 10|202|487.29|48.73|16.24|

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天和30天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 and 30 days sorted by potential payout
@dailychina 提供了中文区更多的数据榜单

2018-04-04 CN区成员谁在 POWER DOWN? (List of CN Members Power Down)

帐号 Account Vesting SP Start 开始时间 Week 第几周
1 @abit 390000000.00 191237.4 2018-01-13 16:27:24 11
2 @breathewind 11428523.07 5604.0 2018-01-12 09:44:12 11
3 @skenan 10207125.98 5005.09 2018-03-16 00:51:12 2
4 @lovemyson 8664094.82 4248.46 2018-02-27 13:05:09 5
5 @fr3eze 7699793.91 3775.61 2018-04-01 13:32:00 0
6 @victory622 7521086.19 3687.98 2018-03-29 13:27:27 0
7 @wang-peilin 5020590.75 2461.86 2018-02-05 16:17:27 8
8 @catwomanteresa 4097815.27 2009.37 2018-01-03 17:28:45 13
9 @cnsteem 4083348.85 2002.28 2018-03-13 17:09:18 3
10 @softmetal 2039369.04 1000.01 2018-04-04 03:55:48 0
11 @wilkinshui 1627222.09 797.91 2018-01-19 23:18:15 10
12 @xuzhen 1089165.97 534.08 2018-01-23 06:32:24 10
13 @jiafui 1020493.54 500.4 2018-03-20 13:59:54 2
14 @melaleuca 623374.37 305.67 2018-03-28 15:50:12 1
15 @znx 623077.75 305.53 2018-01-24 07:29:00 10
16 @xiaoshancun 618739.29 303.4 2018-01-28 03:40:54 9
17 @moobear 217682.76 106.74 2018-01-10 19:57:42 12
18 @arkoko 204647.16 100.35 2018-01-27 17:03:21 9
19 @shaiya 171825.63 84.26 2018-02-23 14:20:54 5
20 @maiyude 94058.89 46.12 2018-02-28 13:12:09 5
21 @sweetcoin 84710.95 41.54 2018-02-21 02:35:27 6
22 @timelordlulu 50451.67 24.74 2018-01-29 23:56:24 9
23 @guangzhoulife 36778.45 18.03 2018-02-27 02:03:12 5
24 @pakhar 32157.95 15.77 2018-02-27 02:01:09 5
25 @ray147880 14290.22 7.01 2018-03-15 17:07:00 2
26 @daydayup 6128.75 3.01 2018-03-02 04:03:39 4
27 @angelina6688 2043.84 1.0 2018-02-21 15:27:06 6
28 @antone 1986.03 0.97 2018-01-15 01:13:36 11

一共正在DOWN的SP总量为:224228.59 Steem Power.

这个报告的年龄为: 222天。
为什么要有这个报告?

@justyy 是 https://justyy.com 的博主,写些帖子挣些小钱养家糊口。@justyy 也是CN 区的点赞机器人,对优质内容进行点赞,只要代理给 @justyy 每天收利息(年化率 8-10%)并且能获得一次相应至少2倍的点赞,可以认为是VP 200%+。加入计划最低代理5 SP

  1. CN 区最低保障系统 上线了!
  2. CN 区低保计划(鼓励新人)真的适合你么?
  3. CN 区优质内容点赞机器人上线了!
  4. 点赞机器人每日点赞记录整合到每日报表中!
  5. 虽然不挣钱,但是CN区低保计划还会继续下去
  6. cnbuddy 和 YY 银行的区别,哪个更适合你?
  7. YY 银行明天加息到 年利率 8%,点赞比重增加
  8. YY 银行开启互抱大腿模式
  9. 大家好才是真的好,YY银行足球队,你还有啥理由不加入银行?
  10. YY 银行迎来第100个股东!感谢一路上有你们!5 SP即可加盟!
  11. YY 银行有条件加息试行条例

YY银行有 162位股东,一共股权总量为 26391.0 SP

查询谁都参于了也可以用这个在线工具: Steemit 查看谁委派代理给你Steem Power?
|Delegator| Steem Power| Vests| DateTime|
|:–|:–|:–|:–|
| @xiaohui |5007.71|10212478.13|2018-03-06 01:46:15|
| @htliao |3503.07|7143996.01|2018-03-18 16:01:57|
| @bobdos |1004.66|2048851.33|2018-01-04 06:18:45|
| @eduter |930.07|1896743.76|2017-11-06 03:57:36|
| @susanli3769 |803.74|1639097.15|2018-01-04 01:32:00|
| @wongshiying |778.53|1587698.86|2017-12-18 08:45:33|
| @nedspeaks |700.62|1428801.3|2018-03-18 15:21:51|
| @coolgbd |651.0|1327617.34|2018-03-06 03:25:42|
| @mrpointp |603.22|1230175.09|2017-12-21 01:18:39|
| @oldman28 |601.96|1227603.68|2018-03-05 02:03:21|
| @zxbuster |570.21|1162860.34|2018-03-28 07:54:36|
| @daydayup |504.33|1028505.54|2017-10-17 21:39:27|
| @bigbigfish |502.71|1025193.45|2017-12-20 02:57:39|
| @magicmonk |502.62|1025010.0|2017-12-31 09:50:33|
| @rosatravels |502.09|1023927.76|2018-02-22 06:23:00|
| @chann |500.53|1020745.81|2018-03-15 10:01:39|
| @timknip |352.04|717941.78|2017-12-11 14:38:21|
| @andrewma |350.55|714903.97|2018-03-05 06:18:18|
| @zsilence |302.98|617872.78|2017-09-23 16:04:45|
| @mrspointm |302.9|617714.93|2017-09-28 14:07:18|
| @luneknight |302.24|616380.5|2017-11-09 17:09:45|
| @shengjian |302.14|616162.83|2017-11-16 14:28:48|
| @stabilowl |302.03|615948.17|2017-11-23 10:04:21|
| @jiayanglai |301.49|614842.63|2017-12-29 02:31:36|
| @znx |301.41|614680.62|2018-01-03 10:21:09|
| @bizheng |300.28|612367.17|2018-03-17 21:43:06|
| @windowglass |250.95|511778.68|2018-01-21 11:32:06|
| @vandadream |201.19|410292.3|2017-12-09 16:27:51|
| @dongfengman |200.37|408618.82|2018-02-28 12:17:03|
| @ian027 |180.08|367237.67|2018-03-27 08:47:54|
| @ety001 |133.08|271406.39|2018-03-25 13:17:03|
| @arkoko |120.44|245622.49|2018-01-24 00:44:54|
| @kangnajiang |118.07|240787.09|2017-10-08 10:12:12|
| @zhijun |101.43|206853.0|2017-09-19 03:18:57|
| @chaofanjun |101.3|206590.04|2018-02-06 13:45:06|
| @jessicameng |101.01|205993.57|2017-09-20 09:14:24|
| @fr3eze |100.98|205931.08|2017-09-26 03:17:24|
| @drunkevil |100.96|205885.32|2017-09-30 10:23:51|
| @joythewanderer |100.87|205714.6|2017-10-16 14:51:15|
| @shenchensucc |100.85|205666.15|2017-10-21 05:12:21|
| @nationalpark |100.76|205476.85|2017-11-08 03:15:06|
| @aaronli |100.75|205459.25|2017-11-09 19:14:57|
| @lixing |100.73|205422.08|2017-11-13 07:50:27|
| @heyeshuang |100.69|205345.07|2017-11-20 15:45:54|
| @kimzwarch |100.6|205157.12|2017-12-08 15:06:21|
| @yellowbird |100.23|204409.93|2018-02-19 04:46:12|
| @lymichale |100.15|204237.23|2018-03-07 05:20:42|
| @angelina6688 |100.14|204223.08|2018-03-08 12:56:15|
| @honoru |100.04|204024.25|2018-03-27 01:22:27|
| @rmb |80.45|164066.73|2017-12-15 18:27:39|
| @antone |76.4|155804.27|2018-03-14 05:04:24|
| @redtea |70.5|143768.53|2017-11-16 23:37:12|
| @xyj |70.41|143588.38|2017-12-11 14:32:51|
| @monkeyplayfire |70.41|143587.76|2017-12-11 16:36:12|
| @melaleuca |70.32|143397.28|2018-01-07 10:07:03|
| @renzhichu |70.04|142844.34|2018-03-23 10:03:24|
| @xiaoshancun |68.54|139787.01|2017-10-30 09:51:18|
| @emot |61.39|125187.95|2018-03-02 10:59:54|
| @ethanlee |61.12|124640.79|2018-02-26 16:12:06|
| @mumingduozi |60.77|123928.0|2017-09-19 00:25:12|
| @anxin |60.12|122597.99|2018-02-26 14:24:18|
| @tvb |50.48|102943.21|2017-09-30 07:54:27|
| @waiyee422 |50.25|102477.92|2017-12-28 06:55:36|
| @syh7758520 |50.23|102427.08|2018-01-07 07:58:21|
| @jiangchen |50.19|102346.3|2018-01-23 08:09:54|
| @mygoblin |50.18|102341.64|2018-01-24 05:40:27|
| @lizhan |50.16|102284.42|2018-02-04 05:12:30|
| @francesaw |50.11|102187.0|2018-02-22 12:36:18|
| @jeffreysxy |50.09|102154.55|2018-02-28 12:58:36|
| @rileyge |50.09|102151.96|2018-03-01 00:30:51|
| @lovechenxue |50.08|102140.02|2018-03-03 05:43:51|
| @aafeng |50.02|102006.96|2018-03-28 00:29:00|
| @jiafui |50.01|101993.84|2018-03-30 10:59:57|
| @nokeh |45.08|91926.27|2018-03-03 04:27:15|
| @bigcat |42.3|86268.13|2017-11-15 09:29:03|
| @speeding |40.35|82280.25|2017-10-17 22:45:06|
| @liuboya |40.16|81905.39|2018-01-16 08:28:51|
| @jrvacation |40.08|81735.26|2018-02-25 20:14:30|
| @raywang |30.29|61779.27|2017-09-26 03:40:09|
| @jychbetter |30.2|61598.33|2017-11-22 07:20:24|
| @cha0s0000 |30.11|61405.3|2018-01-24 03:12:45|
| @coindzs |30.05|61286.91|2018-03-02 08:10:18|
| @elizacheng |30.03|61241.92|2018-03-16 07:03:09|
| @weisheng167388 |30.03|61237.21|2018-03-17 18:02:18|
| @tranquilpoem |29.17|59492.92|2017-12-09 12:10:54|
| @al2ping |25.13|51257.35|2017-12-21 00:46:18|
| @hopsken |25.12|51223.74|2018-01-03 06:59:57|
| @ericet |25.03|51038.79|2018-03-14 20:37:06|
| @softmetal |25.02|51030.69|2018-03-17 20:54:45|
| @fishlucy |25.01|51010.13|2018-03-25 13:03:33|
| @chaimyu |25.01|50997.13|2018-03-30 09:06:57|
| @jiba |20.16|41120.9|2017-10-27 01:25:36|
| @techlee |20.15|41098.79|2017-11-06 12:28:48|
| @yanel |20.14|41080.66|2017-11-15 02:42:27|
| @pptx |20.11|41010.7|2017-12-18 16:21:21|
| @wlcpu |20.11|41005.9|2017-12-21 00:34:42|
| @towardsthesun |20.08|40941.83|2018-01-21 17:03:48|
| @shentrading |20.07|40938.89|2018-01-23 03:55:39|
| @liangfengyouren |20.07|40938.01|2018-01-23 14:03:45|
| @chenhs |20.07|40934.4|2018-01-25 07:38:33|
| @linda65 |20.07|40925.24|2018-01-29 17:27:42|
| @lilypang22 |20.05|40895.33|2018-02-13 00:44:57|
| @davidke20 |20.04|40877.6|2018-02-21 05:27:45|
| @itchyfeetdonica |20.04|40874.98|2018-02-22 10:33:24|
| @dailystudy |20.03|40854.02|2018-03-04 03:56:09|
| @superoo7 |20.01|40806.51|2018-03-26 06:47:57|
| @evathinking |20.01|40805.77|2018-03-26 15:05:45|
| @acat |19.2|39160.91|2018-01-06 19:35:30|
| @zhuobufan |15.56|31723.22|2018-01-25 21:40:57|
| @irenett |15.06|30710.94|2018-01-18 16:54:03|
| @prch |15.04|30671.5|2018-02-13 00:41:51|
| @wilhb81 |15.03|30659.47|2018-02-20 10:39:33|
| @meixia |12.04|24551.76|2018-02-01 09:07:45|
| @vivia |12.01|24489.26|2018-03-22 02:49:18|
| @daxiang |11.05|22532.46|2018-01-08 16:18:51|
| @wang-peilin |11.05|22532.03|2018-01-09 01:47:00|
| @nahaha |10.56|21528.04|2017-12-21 01:50:48|
| @wangwenjing |10.1|20598.79|2017-09-20 21:35:18|
| @willwangfeng |10.09|20576.13|2017-10-12 04:24:57|
| @winniex |10.08|20547.82|2017-11-08 00:07:12|
| @zizizhuji |10.07|20541.39|2017-11-14 02:23:18|
| @sphenix |10.05|20498.31|2017-12-25 14:37:48|
| @yuan0601 |10.05|20487.39|2018-01-05 09:01:57|
| @huayi |10.05|20485.68|2018-01-07 01:34:21|
| @bonjovis |10.04|20466.43|2018-01-26 01:31:24|
| @inmylife |10.03|20455.09|2018-02-05 23:19:36|
| @nileelily |10.03|20453.58|2018-02-07 09:45:45|
| @superxiaogui |10.03|20453.31|2018-02-07 15:59:18|
| @cryptotraderl |10.03|20445.94|2018-02-14 15:06:09|
| @perlia |10.03|20445.34|2018-02-15 04:17:15|
| @nostalgic1212 |10.02|20441.06|2018-02-19 03:15:21|
| @liumei |10.02|20435.48|2018-02-24 07:20:48|
| @zhangxiaopanger |10.02|20433.05|2018-02-26 13:10:33|
| @bloomyspring |10.02|20430.15|2018-03-01 05:58:06|
| @akirachang |10.02|20428.93|2018-03-02 09:01:15|
| @sweet-jenny8 |10.01|20422.28|2018-03-08 13:36:39|
| @ontheway2017 |10.01|20417.15|2018-03-13 08:10:54|
| @jaffer |10.01|20409.39|2018-03-20 13:13:30|
| @yasu24 |10.01|20405.79|2018-03-23 22:09:03|
| @songtiejun |10.0|20402.75|2018-03-26 18:10:24|
| @coder-bts |6.0|12236.74|2018-04-03 08:31:24|
| @sagtany |5.01|10225.81|2018-02-09 06:45:24|
| @yingzoe |5.01|10225.78|2018-02-09 07:53:57|
| @wickedgoose |5.01|10225.62|2018-02-09 15:26:24|
| @ray147880 |5.01|10221.44|2018-02-17 10:42:36|
| @fanso |5.01|10220.9|2018-02-18 11:02:36|
| @whallx |5.01|10220.88|2018-02-18 11:36:39|
| @jojoga |5.01|10220.34|2018-02-19 11:44:30|
| @maiyude |5.01|10217.85|2018-02-24 02:21:39|
| @jinluan |5.01|10217.1|2018-02-25 11:48:36|
| @wilburm |5.01|10214.31|2018-03-02 16:05:21|
| @straycat |5.01|10213.94|2018-03-03 08:22:36|
| @ivysrono |5.01|10213.29|2018-03-04 13:33:51|
| @wilfredn |5.01|10212.54|2018-03-05 22:51:45|
| @robotq |5.01|10211.64|2018-03-07 15:01:48|
| @goplayer |5.0|10206.4|2018-03-17 09:11:27|
| @mintao |5.0|10204.9|2018-03-20 04:12:57|
| @digiccydigger |5.0|10202.13|2018-03-25 08:25:45|
| @intmilanmilano |5.0|10201.59|2018-03-26 08:31:21|
| @corliss |5.0|10199.89|2018-03-29 12:16:06|
| @chineselaw |5.0|10197.28|2018-04-03 08:34:09|
| @lakemountain |4.9|9997.1|2018-03-27 05:33:00|
一共 26391.0 SP, 53820479.73 VESTS。

2018-04-04 CN区的见证人 Witnesses

Witness Post Voters Votes Last Block Version Missing
@abit - Vote Witness Post 3637 31423555262049860 21268372 0.19.2 187
@justyy - Vote Witness Post 163 7500481630329420 21268419 0.19.2 2
@skenan - Vote Witness Post 127 2315711572788292 21261083 0.19.2 10
@bobdos - Vote Witness Post 90 418711451563778 21253291 0.19.2 0
@ety001 - Vote Witness Post 59 395893561988187 21259866 0.19.2 2

2018-04-04 CN区的见证人 Witnesses 出块总数

Witness Total Blocks Produced Blocks in 24 Hours
@abit - Vote 646766 36
@skenan - Vote 273 2
@justyy - Vote 90 9
@bobdos - Vote 13 1
@ety001 - Vote 13 1

通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理至少 5 SP 给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

SteemIt 教程、机器人、在线工具和API接口
代理SP给YY银行是很划算的,YY银行吃的是草(借的SP),挤的是奶啊(流通性较强的SBD利息),每日发 SBD利息,从不间断。祝股东们都在2018里赚大钱,实现财务自由啊!

加入公众号 justyyuk 即可以实时查询 BTC, SBD, STEEM, YOYOW, LTC, ETH虚拟货币的价格.

Discord 机器人

这个报告为 BETA 版本,欢迎 @justyy 提建议,谢谢!

这个报告的目的:(1)每日刷出SBD(流通性较好,比SP更值钱)给股东发利息(2)团结CN区成员(3)把CN区做大做强!
SteemIt Tutorials, Robots, Tools and APIs

支持我的工作 支持我成为 见证人

  1. 请在 这里 投我一票, 或者
  2. 设置我 为代理.

谢谢您!

Support me and my work as a witness by

  1. voting me here, or
  2. voting me as a proxy.

Thank you!


This page is synchronized from the post: 【第 贰贰贰 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-04-04)

《Steem 指南》之 justyy 在线工具与 API 系列 - 见证人相互投票 - 谁没有给你投票?

English Translation: Steemit Mutual Witness Report - Who Hasn’t Voted You Back?


Image Credit: steemh.org

前言

见证人也是互相抱团的,网红 @jerrybanfield 给我留言,问我是否能提供一个工具能用于查看投你为见证人的支持者、和你相互抱团的见证人 还有没给你投票的见证人。

工具地址

https://helloacm.com/tools/steemit/list-of-mutual-witness/

使用方法

在文本框里输入您的 STEEM ID 按回车或者点击查询按钮即可。

这个工具能做什么?

它能够获取以下信息:

  1. 您的支持者,也就是谁投了您为见证人,列表将会链接到这个在线工具。
  2. 您支持的见证人,这个列表会在这个在线工具中,您可以查看谁离线了。
  3. 您支持的见证人中谁并没有投您为一票。需要注意的是:有些人使用投票代理,所以并不是直接的投票。
  4. 相互抱团的见证人列表,也就是你投他/她,他/她也投你。

API 程序接口(Application Programming Interface)

API访问接口如下:

https://helloacm.com/api/steemit/witness_voters/?cached&id=justyy

将返回4个JSON数组:

  1. voted (您的支持者)
  2. votes (您支持的见证人)
  3. not (您支持的见证人中谁没有给您投票)
  4. both (相互投票者)

如果 \$_GET 参数 s 没有指定,该API接口也会去找 \$_POST 变量 id。

curl -X POST https://helloacm.com/api/steemit/witness_voters/ -d “id=justyy”


本文已经同步到:https://justyy.com/archives/6180

支持我的工作 支持我成为 见证人

  1. 请在 这里 投我一票, 或者
  2. 设置我 为代理.

谢谢您!

English Translation: Steemit Mutual Witness Report - Who Hasn’t Voted You Back?


This page is synchronized from the post: 《Steem 指南》之 justyy 在线工具与 API 系列 - 见证人相互投票 - 谁没有给你投票?

Steemit Mutual Witness Report - Who Hasn't Voted You Back?

@jerrybanfield commented here suggesting a tool that shows votes back and forth because this will be very helpful to see which witnesses voting for us and we vote for.

This is a nice idea so here, I present this tool to you:

https://helloacm.com/tools/steemit/mutual-witness/

Enter Your Steem ID and press Enter, wait a few seconds, and the tool will give you these information:

  1. How many vote you as witness (your supporters). The full list is linked via this tool.
  2. How many you have supported (your witness votes), this tools has been presented in here
  3. How many have not voted back? The list will be among your votes that do not vote you back as witness. Please note that some may vote you through their proxies (this is hard and I am still working on it).
  4. Mutual Supporters: You vote him/her and he/she votes you as well!

Screenshots

image.png

image.png

Witness API

API Calling Example is:

https://helloacm.com/api/steemit/witness_voters/?cached&id=justyy

It will return JSON-encoded data which has the four sub-arrays:

  • voted (Who vote you)
  • votes (Who you vote)
  • not (Who has not voted you back)
  • both (Mutual voters)

If \$_GET parameter s is not specified, this API will use the \$_POST variable id instead.

curl -X POST https://helloacm.com/api/steemit/witness_voters/ -d “id=justyy”

Support me and my work as a witness by

  1. voting me here, or
  2. voting me as a proxy.

Thank you!


This page is synchronized from the post: Steemit Mutual Witness Report - Who Hasn’’t Voted You Back?

【第 贰贰壹 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-04-03)

第 221 期日报 (No. 221 Daily Report)
生成时间: 2018-04-03 10:10:02 (UTC)
报告时间: 2018-03-30 10:10:02 (UTC) - 2018-03-31 10:10:02 (UTC)
上一期第 220 期日报 Last Report - No. 220 Daily Report

@arcange SteemSQL.com

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天和30天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 and 30 days sorted by potential payout
@dailychina 提供了中文区更多的数据榜单

CN 区优质内容点赞机器人每天可能会为这30名作者点赞!
CN Good-Content-Bot may upvote these authors every day!

2018-04-03 Daily Top Authors in [CN] (Last 30 Days) 每日cn社区之 过去30天收益排行榜

The following is the list of top 30 daily authors in [CN] in the last 30 days sorted by payout.
| 排名 Rank| 作者 Author| 发贴数 Posts| 点赞数 Votes| 收益 Payout| 平均每贴收益 Average Payout Per Post| 平均每天收益 Average Daily Payout|
|:–:|:–:|:–:|:–:|:–:|:–:|:–:|
| 1|@darksaint| 104|1336|6222.30|59.83|207.41|
| 2|@chinadaily| 120|6471|3467.99|28.90|115.60|
| 3|@oflyhigh| 59|9203|3322.48|56.31|110.75|
| 4|@leftbank| 16|3146|2315.52|144.72|77.18|
| 5|@twinkledrop| 23|1227|1974.91|85.87|65.83|
| 6|@deanliu| 42|4905|1779.39|42.37|59.31|
| 7|@rea| 17|2819|1746.48|102.73|58.22|
| 8|@michaelleeld| 29|676|1552.74|53.54|51.76|
| 9|@amylee| 18|779|1527.56|84.86|50.92|
| 10|@travelgirl| 58|2907|1430.11|24.66|47.67|
| 11|@justyy| 65|7133|1331.06|20.48|44.37|
| 12|@helene| 24|3187|1116.48|46.52|37.22|
| 13|@blackbunny| 31|2316|1100.12|35.49|36.67|
| 14|@joythewanderer| 31|3853|1051.28|33.91|35.04|
| 15|@rivalhw| 39|3292|954.14|24.47|31.80|
| 16|@fr3eze| 29|2660|925.77|31.92|30.86|
| 17|@ace108| 161|11013|904.34|5.62|30.14|
| 18|@htliao| 61|7394|898.80|14.73|29.96|
| 19|@ety001| 21|966|891.61|42.46|29.72|
| 20|@sweetsssj| 3|4268|858.72|286.24|28.62|
| 21|@cha0s0000| 14|978|761.87|54.42|25.40|
| 22|@brianlam| 14|240|668.54|47.75|22.28|
| 23|@feeel| 18|606|642.71|35.71|21.42|
| 24|@lawrenceho84| 46|525|603.44|13.12|20.11|
| 25|@helgachen| 10|254|566.69|56.67|18.89|
| 26|@rosatravels| 92|4819|564.62|6.14|18.82|
| 27|@jrvacation| 27|2480|528.30|19.57|17.61|
| 28|@corbettreport| 5|788|524.14|104.83|17.47|
| 29|@serenawu| 10|202|487.29|48.73|16.24|
| 30|@softmetal| 61|2332|437.86|7.18|14.60|

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天和30天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 and 30 days sorted by potential payout
@dailychina 提供了中文区更多的数据榜单

2018-04-03 CN区成员谁在 POWER DOWN? (List of CN Members Power Down)

帐号 Account Vesting SP Start 开始时间 Week 第几周
1 @abit 390000000.00 191227.28 2018-01-13 16:27:24 11
2 @breathewind 11428523.07 5603.71 2018-01-12 09:44:12 11
3 @skenan 10207125.98 5004.82 2018-03-16 00:51:12 2
4 @lovemyson 8664094.82 4248.23 2018-02-27 13:05:09 5
5 @fr3eze 7699793.91 3775.41 2018-04-01 13:32:00 0
6 @victory622 7521086.19 3687.79 2018-03-29 13:27:27 0
7 @wang-peilin 5020590.75 2461.73 2018-02-05 16:17:27 8
8 @catwomanteresa 4097815.27 2009.27 2018-01-03 17:28:45 12
9 @cnsteem 4083348.85 2002.17 2018-03-13 17:09:18 3
10 @wilkinshui 1627222.09 797.87 2018-01-19 23:18:15 10
11 @xuzhen 1089165.97 534.05 2018-01-23 06:32:24 10
12 @jiafui 1020493.54 500.37 2018-03-20 13:59:54 2
13 @cqf 896737.60 439.69 2018-01-02 16:20:48 13
14 @melaleuca 623374.37 305.66 2018-03-28 15:50:12 0
15 @znx 623077.75 305.51 2018-01-24 07:29:00 9
16 @xiaoshancun 618739.29 303.38 2018-01-28 03:40:54 9
17 @moobear 217682.76 106.74 2018-01-10 19:57:42 11
18 @arkoko 204647.16 100.34 2018-01-27 17:03:21 9
19 @shaiya 171825.63 84.25 2018-02-23 14:20:54 5
20 @maiyude 94058.89 46.12 2018-02-28 13:12:09 4
21 @sweetcoin 84710.95 41.54 2018-02-21 02:35:27 5
22 @timelordlulu 50451.67 24.74 2018-01-29 23:56:24 9
23 @guangzhoulife 36778.45 18.03 2018-02-27 02:03:12 5
24 @pakhar 32157.95 15.77 2018-02-27 02:01:09 5
25 @ray147880 14290.22 7.01 2018-03-15 17:07:00 2
26 @daydayup 6128.75 3.01 2018-03-02 04:03:39 4
27 @angelina6688 2043.84 1.0 2018-02-21 15:27:06 5
28 @antone 1986.03 0.97 2018-01-15 01:13:36 11

一共正在DOWN的SP总量为:223656.46 Steem Power.

这个报告的年龄为: 221天。
为什么要有这个报告?

@justyy 是 https://justyy.com 的博主,写些帖子挣些小钱养家糊口。@justyy 也是CN 区的点赞机器人,对优质内容进行点赞,只要代理给 @justyy 每天收利息(年化率 8-10%)并且能获得一次相应至少2倍的点赞,可以认为是VP 200%+。加入计划最低代理5 SP

  1. CN 区最低保障系统 上线了!
  2. CN 区低保计划(鼓励新人)真的适合你么?
  3. CN 区优质内容点赞机器人上线了!
  4. 点赞机器人每日点赞记录整合到每日报表中!
  5. 虽然不挣钱,但是CN区低保计划还会继续下去
  6. cnbuddy 和 YY 银行的区别,哪个更适合你?
  7. YY 银行明天加息到 年利率 8%,点赞比重增加
  8. YY 银行开启互抱大腿模式
  9. 大家好才是真的好,YY银行足球队,你还有啥理由不加入银行?
  10. YY 银行迎来第100个股东!感谢一路上有你们!5 SP即可加盟!
  11. YY 银行有条件加息试行条例

YY银行有 162位股东,一共股权总量为 26389.6 SP

查询谁都参于了也可以用这个在线工具: Steemit 查看谁委派代理给你Steem Power?
|Delegator| Steem Power| Vests| DateTime|
|:–|:–|:–|:–|
| @xiaohui |5007.45|10212478.13|2018-03-06 01:46:15|
| @htliao |3502.89|7143996.01|2018-03-18 16:01:57|
| @bobdos |1004.61|2048851.33|2018-01-04 06:18:45|
| @eduter |930.02|1896743.76|2017-11-06 03:57:36|
| @susanli3769 |803.69|1639097.15|2018-01-04 01:32:00|
| @wongshiying |778.49|1587698.86|2017-12-18 08:45:33|
| @nedspeaks |700.58|1428801.3|2018-03-18 15:21:51|
| @coolgbd |650.97|1327617.34|2018-03-06 03:25:42|
| @mrpointp |603.19|1230175.09|2017-12-21 01:18:39|
| @oldman28 |601.93|1227603.68|2018-03-05 02:03:21|
| @zxbuster |570.18|1162860.34|2018-03-28 07:54:36|
| @daydayup |504.3|1028505.54|2017-10-17 21:39:27|
| @bigbigfish |502.68|1025193.45|2017-12-20 02:57:39|
| @magicmonk |502.59|1025010.0|2017-12-31 09:50:33|
| @rosatravels |502.06|1023927.76|2018-02-22 06:23:00|
| @chann |500.5|1020745.81|2018-03-15 10:01:39|
| @timknip |352.03|717941.78|2017-12-11 14:38:21|
| @andrewma |350.54|714903.97|2018-03-05 06:18:18|
| @zsilence |302.96|617872.78|2017-09-23 16:04:45|
| @mrspointm |302.88|617714.93|2017-09-28 14:07:18|
| @luneknight |302.23|616380.5|2017-11-09 17:09:45|
| @shengjian |302.12|616162.83|2017-11-16 14:28:48|
| @stabilowl |302.02|615948.17|2017-11-23 10:04:21|
| @jiayanglai |301.47|614842.63|2017-12-29 02:31:36|
| @znx |301.39|614680.62|2018-01-03 10:21:09|
| @bizheng |300.26|612367.17|2018-03-17 21:43:06|
| @windowglass |250.94|511778.68|2018-01-21 11:32:06|
| @vandadream |201.18|410292.3|2017-12-09 16:27:51|
| @dongfengman |200.36|408618.82|2018-02-28 12:17:03|
| @ian027 |180.07|367237.67|2018-03-27 08:47:54|
| @ety001 |133.08|271406.39|2018-03-25 13:17:03|
| @arkoko |120.44|245622.49|2018-01-24 00:44:54|
| @kangnajiang |118.06|240787.09|2017-10-08 10:12:12|
| @zhijun |101.43|206853.0|2017-09-19 03:18:57|
| @chaofanjun |101.3|206590.04|2018-02-06 13:45:06|
| @jessicameng |101.0|205993.57|2017-09-20 09:14:24|
| @fr3eze |100.97|205931.08|2017-09-26 03:17:24|
| @drunkevil |100.95|205885.32|2017-09-30 10:23:51|
| @joythewanderer |100.87|205714.6|2017-10-16 14:51:15|
| @shenchensucc |100.84|205666.15|2017-10-21 05:12:21|
| @nationalpark |100.75|205476.85|2017-11-08 03:15:06|
| @aaronli |100.74|205459.25|2017-11-09 19:14:57|
| @lixing |100.72|205422.08|2017-11-13 07:50:27|
| @heyeshuang |100.69|205345.07|2017-11-20 15:45:54|
| @kimzwarch |100.59|205157.12|2017-12-08 15:06:21|
| @yellowbird |100.23|204409.93|2018-02-19 04:46:12|
| @lymichale |100.14|204237.23|2018-03-07 05:20:42|
| @angelina6688 |100.14|204223.08|2018-03-08 12:56:15|
| @honoru |100.04|204024.25|2018-03-27 01:22:27|
| @rmb |80.45|164066.73|2017-12-15 18:27:39|
| @antone |76.39|155804.27|2018-03-14 05:04:24|
| @redtea |70.49|143768.53|2017-11-16 23:37:12|
| @xyj |70.41|143588.38|2017-12-11 14:32:51|
| @monkeyplayfire |70.4|143587.76|2017-12-11 16:36:12|
| @melaleuca |70.31|143397.28|2018-01-07 10:07:03|
| @renzhichu |70.04|142844.34|2018-03-23 10:03:24|
| @xiaoshancun |68.54|139787.01|2017-10-30 09:51:18|
| @emot |61.38|125187.95|2018-03-02 10:59:54|
| @ethanlee |61.11|124640.79|2018-02-26 16:12:06|
| @mumingduozi |60.77|123928.0|2017-09-19 00:25:12|
| @anxin |60.11|122597.99|2018-02-26 14:24:18|
| @tvb |50.48|102943.21|2017-09-30 07:54:27|
| @waiyee422 |50.25|102477.92|2017-12-28 06:55:36|
| @syh7758520 |50.22|102427.08|2018-01-07 07:58:21|
| @jiangchen |50.18|102346.3|2018-01-23 08:09:54|
| @mygoblin |50.18|102341.64|2018-01-24 05:40:27|
| @lizhan |50.15|102284.42|2018-02-04 05:12:30|
| @francesaw |50.1|102187.0|2018-02-22 12:36:18|
| @jeffreysxy |50.09|102154.55|2018-02-28 12:58:36|
| @rileyge |50.09|102151.96|2018-03-01 00:30:51|
| @lovechenxue |50.08|102140.02|2018-03-03 05:43:51|
| @aafeng |50.02|102006.96|2018-03-28 00:29:00|
| @jiafui |50.01|101993.84|2018-03-30 10:59:57|
| @nokeh |45.07|91926.27|2018-03-03 04:27:15|
| @bigcat |42.3|86268.13|2017-11-15 09:29:03|
| @speeding |40.34|82280.25|2017-10-17 22:45:06|
| @liuboya |40.16|81905.39|2018-01-16 08:28:51|
| @jrvacation |40.08|81735.26|2018-02-25 20:14:30|
| @raywang |30.29|61779.27|2017-09-26 03:40:09|
| @jychbetter |30.2|61598.33|2017-11-22 07:20:24|
| @cha0s0000 |30.11|61405.3|2018-01-24 03:12:45|
| @coindzs |30.05|61286.91|2018-03-02 08:10:18|
| @elizacheng |30.03|61241.92|2018-03-16 07:03:09|
| @weisheng167388 |30.03|61237.21|2018-03-17 18:02:18|
| @tranquilpoem |29.17|59492.92|2017-12-09 12:10:54|
| @al2ping |25.13|51257.35|2017-12-21 00:46:18|
| @hopsken |25.12|51223.74|2018-01-03 06:59:57|
| @ericet |25.03|51038.79|2018-03-14 20:37:06|
| @softmetal |25.02|51030.69|2018-03-17 20:54:45|
| @fishlucy |25.01|51010.13|2018-03-25 13:03:33|
| @chaimyu |25.01|50997.13|2018-03-30 09:06:57|
| @jiba |20.16|41120.9|2017-10-27 01:25:36|
| @techlee |20.15|41098.79|2017-11-06 12:28:48|
| @yanel |20.14|41080.66|2017-11-15 02:42:27|
| @pptx |20.11|41010.7|2017-12-18 16:21:21|
| @wlcpu |20.11|41005.9|2017-12-21 00:34:42|
| @towardsthesun |20.07|40941.83|2018-01-21 17:03:48|
| @shentrading |20.07|40938.89|2018-01-23 03:55:39|
| @liangfengyouren |20.07|40938.01|2018-01-23 14:03:45|
| @chenhs |20.07|40934.4|2018-01-25 07:38:33|
| @linda65 |20.07|40925.24|2018-01-29 17:27:42|
| @lilypang22 |20.05|40895.33|2018-02-13 00:44:57|
| @davidke20 |20.04|40877.6|2018-02-21 05:27:45|
| @itchyfeetdonica |20.04|40874.98|2018-02-22 10:33:24|
| @dailystudy |20.03|40854.02|2018-03-04 03:56:09|
| @superoo7 |20.01|40806.51|2018-03-26 06:47:57|
| @evathinking |20.01|40805.77|2018-03-26 15:05:45|
| @acat |19.2|39160.91|2018-01-06 19:35:30|
| @zhuobufan |15.55|31723.22|2018-01-25 21:40:57|
| @irenett |15.06|30710.94|2018-01-18 16:54:03|
| @prch |15.04|30671.5|2018-02-13 00:41:51|
| @wilhb81 |15.03|30659.47|2018-02-20 10:39:33|
| @meixia |12.04|24551.76|2018-02-01 09:07:45|
| @vivia |12.01|24489.26|2018-03-22 02:49:18|
| @daxiang |11.05|22532.46|2018-01-08 16:18:51|
| @wang-peilin |11.05|22532.03|2018-01-09 01:47:00|
| @nahaha |10.56|21528.04|2017-12-21 01:50:48|
| @wangwenjing |10.1|20598.79|2017-09-20 21:35:18|
| @willwangfeng |10.09|20576.13|2017-10-12 04:24:57|
| @winniex |10.08|20547.82|2017-11-08 00:07:12|
| @zizizhuji |10.07|20541.39|2017-11-14 02:23:18|
| @sphenix |10.05|20498.31|2017-12-25 14:37:48|
| @yuan0601 |10.05|20487.39|2018-01-05 09:01:57|
| @huayi |10.04|20485.68|2018-01-07 01:34:21|
| @bonjovis |10.04|20466.43|2018-01-26 01:31:24|
| @inmylife |10.03|20455.09|2018-02-05 23:19:36|
| @nileelily |10.03|20453.58|2018-02-07 09:45:45|
| @superxiaogui |10.03|20453.31|2018-02-07 15:59:18|
| @cryptotraderl |10.03|20445.94|2018-02-14 15:06:09|
| @perlia |10.02|20445.34|2018-02-15 04:17:15|
| @nostalgic1212 |10.02|20441.06|2018-02-19 03:15:21|
| @liumei |10.02|20435.48|2018-02-24 07:20:48|
| @zhangxiaopanger |10.02|20433.05|2018-02-26 13:10:33|
| @bloomyspring |10.02|20430.15|2018-03-01 05:58:06|
| @akirachang |10.02|20428.93|2018-03-02 09:01:15|
| @sweet-jenny8 |10.01|20422.28|2018-03-08 13:36:39|
| @ontheway2017 |10.01|20417.15|2018-03-13 08:10:54|
| @jaffer |10.01|20409.39|2018-03-20 13:13:30|
| @yasu24 |10.01|20405.79|2018-03-23 22:09:03|
| @songtiejun |10.0|20402.75|2018-03-26 18:10:24|
| @coder-bts |6.0|12236.74|2018-04-03 08:31:24|
| @sagtany |5.01|10225.81|2018-02-09 06:45:24|
| @yingzoe |5.01|10225.78|2018-02-09 07:53:57|
| @wickedgoose |5.01|10225.62|2018-02-09 15:26:24|
| @ray147880 |5.01|10221.44|2018-02-17 10:42:36|
| @fanso |5.01|10220.9|2018-02-18 11:02:36|
| @whallx |5.01|10220.88|2018-02-18 11:36:39|
| @jojoga |5.01|10220.34|2018-02-19 11:44:30|
| @maiyude |5.01|10217.85|2018-02-24 02:21:39|
| @jinluan |5.01|10217.1|2018-02-25 11:48:36|
| @wilburm |5.01|10214.31|2018-03-02 16:05:21|
| @straycat |5.01|10213.94|2018-03-03 08:22:36|
| @ivysrono |5.01|10213.29|2018-03-04 13:33:51|
| @wilfredn |5.01|10212.54|2018-03-05 22:51:45|
| @robotq |5.01|10211.64|2018-03-07 15:01:48|
| @goplayer |5.0|10206.4|2018-03-17 09:11:27|
| @mintao |5.0|10204.9|2018-03-20 04:12:57|
| @digiccydigger |5.0|10202.13|2018-03-25 08:25:45|
| @intmilanmilano |5.0|10201.59|2018-03-26 08:31:21|
| @corliss |5.0|10199.89|2018-03-29 12:16:06|
| @chineselaw |5.0|10197.28|2018-04-03 08:34:09|
| @lakemountain |4.9|9997.1|2018-03-27 05:33:00|
一共 26389.6 SP, 53820479.73 VESTS。

2018-04-03 CN区的见证人 Witnesses

Witness Post Voters Votes Last Block Version Missing
@abit - Vote Witness Post 3634 31802602776289309 21239574 0.19.2 187
@justyy - Vote Witness Post 162 7236987412112253 21237415 0.19.2 2
@skenan - Vote Witness Post 125 2312550012270964 21239211 0.19.2 10
@bobdos - Vote Witness Post 90 418120598184148 21191625 0.19.2 0
@ety001 - Vote Witness Post 59 395425667536666 21126317 0.19.2 2

2018-04-03 CN区的见证人 Witnesses 出块总数

Witness Total Blocks Produced Blocks in 24 Hours
@abit - Vote 646730 36
@skenan - Vote 271 3
@justyy - Vote 81 8
@bobdos - Vote 12 0
@ety001 - Vote 12 0

通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理至少 5 SP 给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

SteemIt 教程、机器人、在线工具和API接口
代理SP给YY银行是很划算的,YY银行吃的是草(借的SP),挤的是奶啊(流通性较强的SBD利息),每日发 SBD利息,从不间断。祝股东们都在2018里赚大钱,实现财务自由啊!

加入公众号 justyyuk 即可以实时查询 BTC, SBD, STEEM, YOYOW, LTC, ETH虚拟货币的价格.

Discord 机器人

这个报告为 BETA 版本,欢迎 @justyy 提建议,谢谢!

这个报告的目的:(1)每日刷出SBD(流通性较好,比SP更值钱)给股东发利息(2)团结CN区成员(3)把CN区做大做强!
SteemIt Tutorials, Robots, Tools and APIs

支持我的工作 支持我成为 见证人

  1. 请在 这里 投我一票, 或者
  2. 设置我 为代理.

Support me and my work as a witness by

  1. voting me here, or
  2. voting me as a proxy.

This page is synchronized from the post: 【第 贰贰壹 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-04-03)

Data Structures & Algorithms Series - Majority Number | ACM 解题报告 - O(n)找多数算法

image.png

Given an array of integers, the majority number is the number that occurs more than half of the size of the array. Find it in O(n) time and O(1) space complexity.

A simple example: Given [1, 1, 1, 1, 2, 2, 2], return 1 because the number 1 has appeared 4 times which is bigger than half size i.e. 3.5 times.

The very straightforward approach will be using a hashmap to record the number of occurrences for each number, and return the majority once its counter exceeds half size.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Solution {
public:
/*
* @param nums: a list of integers
* @return: find a majority number
*/
int majorityNumber(vector<int> &nums) {
unordered_map<int, int> counter;
int half = nums.size() / 2;
for (auto n: nums) {
if (counter.count(n) == 0) {
counter[n] = 0;
}
counter[n] ++;
if (counter[n] >= half) {
return n;
}
}
return -1; // not found
}
};

The unordered_map has complexity of O(1) in inserting and querying (worst case O(n)) and the above algorithm O(n) time complexity but O(n) space complexity.

Boyer–Moore majority vote algorithm

The Boyer–Moore majority vote algorithm is a O(N) one-pass algorithm that only needs O(1) constant space.

It works by only recording the counter for the current majority candidate. If there exists a majority, the algorithm guarantees to find it, otherwise it will output one of the sequence numbers as it finds it. A second pass is required to check if there is a majority. Let’s take [1 1 1 2 2 3 1] for example, m is the current majority candidate and c is the counter. When c is zero in the next round, the m is set to the current number in the iteration.

When the current number is the same as ‘candidate’, we increment the counter (vote) otherwise, we decrement the counter (de-vote).

[1 1 1 2 2 3 1] m = 1, c = 1
[1
1 1 2 2 3 1] m = 1, c = 2
[1 1 1 2 2 3 1] m = 1, c = 3
[1 1 1
2 2 3 1] m = 1, c = 2
[1 1 1 2 2 3 1] m = 1, c = 1
[1 1 1 2 2
3 1] m = 1, c = 0
[1 1 1 2 2 3 *1] m = 1, c = 1

The second pass we know that m=1 is the majority. The entire process is illustrated in the following C++ code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Solution {
public:
/*
* @param nums: a list of integers
* @return: find a majority number
*/
int majorityNumber(vector<int> &nums) {
int c = 0, m = nums[0];
for (int i = 0; i < nums.size(); ++ i) {
if (c == 0) {
m = nums[i];
c ++;
} else if (m == nums[i]) {
c ++;
} else {
c --;
}
}
// check if there is a majority
int counter = 0;
for (int i : nums) {
if (i == m) counter++;
}
if (counter < (nums.size() + 1) / 2) return -1;
return m;
}
};

Support me and my work as a witness by

  1. voting me here, or
  2. voting me as a proxy.

给定一些整数,请找出它们中的的“多数”。 一个数字如果超过了一半,那么它就是多数。假定这样的数是存在的。

比如,给定 [1, 1, 1, 1, 2, 2, 2], 您的算法将给出 答案 1 因为1出现了4次超过了一半(3.5次)

最直接的算法就是通过 字典(或者HASHMAP)记录每个出现数字的次数,然后只要判断其中一个出现超过一半了,就返回它。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Solution {
public:
/*
* @param nums: a list of integers
* @return: find a majority number
*/
int majorityNumber(vector<int> &nums) {
unordered_map<int, int> counter;
int half = nums.size() / 2;
for (auto n: nums) {
if (counter.count(n) == 0) {
counter[n] = 0;
}
counter[n] ++;
if (counter[n] >= half) {
return n;
}
}
return -1; // 没有找到
}
};

C++中的unordered_map插入复杂度是常数 O(1),平均情况下查找也是O(1) - 注意最坏情况下是 O(n). 上面的算法 时间复杂度是 O(n) 但是空间复杂度是 O(n) - 因为用了 unordered_map

Boyer–Moore 多数投票算法

Boyer–Moore 多数投票算法 只需要常数O(1) 空间复杂度,况且,假定多数存在的话,也只需要一遍循环 O(n) 即可。

其实原理就是:我们只需要记录当前最多数的情况即可。如果存在多数,那么算法一定会找到它。否则,该算法返回顺序数字中的一个数。往往我们需要第二次循环用于确认有一个多数。

拿输入 [1 1 1 2 2 3 1] 为例, m 记录着当前的最多数, c 是计数。当 c 变成0的时候,则下一轮就得更新m 为下一轮的数字。

当这一轮的数字和 m 是一样的,我们就增加投票数 c 否则就把 c 减掉一。

[1 1 1 2 2 3 1] m = 1, c = 1
[1
1 1 2 2 3 1] m = 1, c = 2
[1 1 1 2 2 3 1] m = 1, c = 3
[1 1 1
2 2 3 1] m = 1, c = 2
[1 1 1 2 2 3 1] m = 1, c = 1
[1 1 1 2 2
3 1] m = 1, c = 0
[1 1 1 2 2 3 *1] m = 1, c = 1

第一次循环,我们知道 m=1 超过了一半。 整个过程可以用以下 C++ 代码来演示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Solution {
public:
/*
* @param nums: a list of integers
* @return: find a majority number
*/
int majorityNumber(vector<int> &nums) {
int c = 0, m = nums[0];
for (int i = 0; i < nums.size(); ++ i) {
if (c == 0) {
m = nums[i];
c ++;
} else if (m == nums[i]) {
c ++;
} else {
c --;
}
}
// check if there is a majority
int counter = 0;
for (int i : nums) {
if (i == m) counter++;
}
if (counter < (nums.size() + 1) / 2) return -1;
return m;
}
};

支持我的工作 支持我成为 见证人

  1. 请在 这里 投我一票, 或者
  2. 设置我 为代理.

This page is synchronized from the post: Data Structures & Algorithms Series - Majority Number | ACM 解题报告 - O(n)找多数算法

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×