User Tools

Site Tools


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.

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.1555025541.txt.gz · Last modified: 2019/04/11 23:32 by fangfufu