From c3f985235e0749f3b46eebc7f95400b43fb5f231 Mon Sep 17 00:00:00 2001 From: harsh99sandhu <64521805+harsh99sandhu@users.noreply.github.com> Date: Tue, 2 Jun 2020 20:17:03 +0530 Subject: [PATCH] Basic idea of algorithm (Streak) --- AndroidApp/.idea/Algorithm for streak | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 AndroidApp/.idea/Algorithm for streak diff --git a/AndroidApp/.idea/Algorithm for streak b/AndroidApp/.idea/Algorithm for streak new file mode 100644 index 0000000..afcd61d --- /dev/null +++ b/AndroidApp/.idea/Algorithm for streak @@ -0,0 +1,10 @@ +1)Start the chat block +2)Define variable count in it +3)If both user send a pic to each other, count=1 +4)Capture the exact time stamp and store it in t +5)If both user send pic in less than 24 hrs from t then increment count by 1 +- - another approach ,capture the date when both user send pics for first time and if they send pic within the next day increment count by 1 +6)Else break streak +7)If count <=30 days , place emoji1 +If count <=60 days, place emoji2 and so on +8)Close block