public:the_number_of_people_voted_in_an_instagram_poll
This is an old revision of the document!
The number of people voted in an Instagram poll
Instagram provides this feature polling feature, which allows the user to pick one of the two choices. After the user pick one of the two choices, Instagram shows the percentage of users who picked each option. So I want to know how many people voted in total, and how many people voted for each option.
function [x] = IPRL(yes, total) %IPRL Instagram Poll Reverse Lookup % Detailed explanation goes here tbl = GenTable(total); [x, ~] = find(tbl == yes); end function [tbl] = GenTable(n) %GENTABLE Generate Instagram Reverse Lookup Table tbl = zeros(n); for i = 1:n for j = 1:i tbl(i,j) = round(j/i, 2) * 100; end end end
public/the_number_of_people_voted_in_an_instagram_poll.1555025809.txt.gz · Last modified: 2019/04/11 23:36 by fangfufu