Coolfensi科技头像

Coolfensi科技

客服VX:coolfensi,客服QQ:2451468936(QQ/微信客服只做引导和站点通知,不闲聊。有站点内业务疑问以及订单问题的话,请点击【CL-在线售后客服窗口】进行会话)

  • 文章98207
  • 阅读8602455

人生倒计时

  • 今日已经过去小时
  • 这周已经过去
  • 本月已经过去
  • 今年已经过去个月
首页 最新知识 正文内容

ins好友排序规则(ins好友突然不见了)

客服VX(coolfensi) 最新知识 2023-03-05 08:03:17 64

ins的共友怎么计算

1 public class test1 {

2 /**

3 * 思路:如果A与某人有共同好友,则该人必出现在二度好友中

4 * 不在二度好友中的,则与A的共同好友数必然为0

5 * 故只需遍历所有的二度好友即可,但是不要将那些无共同好友的一度好友忘记!也就是初始化firstout

6 * @param args

7 */

8

9

10 // directs为A的一度好友list,indirects为MapString,ListString代表一度好友的一度好友(不包括A)映射关系表

11 // firstout为A与其一度好友的共同好友数Map,secondout为A与其二度好友的共同好友数Map

12 public static void main(String[] args) {

13

14 String directsString = "BDEH";

15 String bString = "CD";

16 String dString = "B,E,G,G";

17 String eString = "C,D";

18 String hString = "I";

19 ListString directs = stringToList(directsString);

20

21

22 MapString, ListString indirects = new HashMapString, ListString();

23 indirects.put("B", stringToList(bString));

24 indirects.put("D", stringToList(dString));

25 indirects.put("E", stringToList(eString));

26 indirects.put("H", stringToList(hString));

27

28 MapString, Integer firstout = new HashMapString, Integer();//用于存放A与一度好友的共同好友数目

29 MapString, Integer secondout = new HashMapString, Integer();//用于存放A与二度好友的共同好友数目

30

31 //由于遍历所有二度好友,先去考虑在不在fistout中,如果不在则必为二度好友,然后才去考虑在不在secondout中做最后处理,

32 //故firstout需要进行初始化,保证fistout+secondout包含所有A的一度好友与二度好友

33 for(String str : directs) {

34 firstout.put(str, 0);

35 }

36

37 for(Map.EntryString, ListString entry : indirects.entrySet()) {

38 for(String id2 : entry.getValue()) {

39 Integer value = firstout.get(id2);

40 if(value != null) {

41 firstout.put(id2, value+1);

42 }else {

43 if(secondout.get(id2) == null) {

44 secondout.put(id2, 1);

45 }else {

46 secondout.put(id2, secondout.get(id2) + 1);

47 }

48 }

49 }

50 }

51

52 System.out.println("A与一度好友B的共同好友数: " + firstout.get("B"));

53 System.out.println("A与一度好友D的共同好友数: " + firstout.get("D"));

54 System.out.println("A与二度好友C的共同好友数: " + secondout.get("C"));

55 System.out.println("A与二度好友I的共同好友数: " + secondout.get("I"));

56 }

57

58 public static ListString stringToList(String str) {

59 ListString list = new ArrayListString();

60 for (int i = 0; i str.length(); i++) {

61 list.add(str.charAt(i) + "");

62 }

63 return list;

64 }

65 }

story访客顺序

story访客顺序为:

访客顺序是按时间倒序;大于50的时候,访客顺序是按访问次数排序,越靠前的表明越经常浏览你的ins。

ins默认排序方式

当总浏览者人数小于50的时候是按时间倒序 超过50是按访问次数排序的

_娇壳八得髂歉鋈嗽骄d滥愕_ns。

ins story观看排序是怎么排的 为什么一个人总在第一个

不是按发布时间排的,是按你关注ta的账号程度决定的。我做过测试,排在第一的永远是你最关注或者对方最关注你的。我做过测试,我暗恋的一个女生发了一个story排在首位,30分钟后陆续有别的朋友发了story然后你往下滑刷新story会发现排名第一的永远是ta。

ins上留言评论按照什么顺序排列?

好像是乱排的,但是如果一般人(粉丝不多)想上前排你就发一个评论然后在下面回复你自己的评论,大约回复个五六条,运气好被人看见别人又回复你,这样你就可以上前排了,亲测有效,嗯

ins好友排序规则(ins好友突然不见了) 第1张

ins怎么看好友关注顺序

1、打开手机,点击对应的软件。

2、在上方点击关注。

3、在排序的右侧,点击小圆圈图标。

4、选择从旧到新。

5、便可以看到自己的第1个关注。

文章目录
    搜索