JoBat update

A Virtual World of Infotainment :)

Sorting - I

Write a C program to sort the given array of elements , place the even numbers in the right side and odd numbers in the left side in a sorted order.

Sample input   : 6
                          8 2 7 0 5 3
Sample output : 3 5 7 0 2 8


 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include<stdio.h>
int odd[20],even[20]; //global array variables
int top_o=-1,top_e=-1; 
void oddnum(int num) //to store odd numbers
{
    top_o++; //index of odd array
    odd[top_o]=num;
}
void evennum(int num) //to store even numbers
{
    top_e++; //index of even array
    even[top_e]=num;
}
void sort(int array[],int top) //to sort
{
    int tmp;
    for(int i=0;i<top;i++)
    {
        for(int j=i+1;j<=top;j++)
        {
            if(array[i]>=array[j])
            {
                tmp=array[i];
                array[i]=array[j];
                array[j]=tmp;
            }
        }
        printf("%d ",array[i]);
    }
    printf("%d ",array[top]);
}
 
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n],i;
    for(i = 0; i < n ; i++)
    {
        scanf("%d",&arr[i]);
        if(arr[i]%2==0){
            evennum(arr[i]);}
        else{
            oddnum(arr[i]);}
    }
    sort(odd,top_o);
    sort(even,top_e);
    return 0;
}

OUTPUT :

Reliance Jio has announced new changes to its prepaid plans. Under a limited-time offer, the company is offering users additional data. The new plans are available starting today June 12and can be availed till June 30. This means that users can enjoy the additional data benefits on all recharges made till June 30. So, if a user recharges a Jio plan with 28 days validity 10 times during these days (June 12-30), he will get these benefits for 280 days (28 x 10).



  • Reliance Jio revised some of its plans to offer more data. Today, to counter Airtel’s 1GB/day additional data on Rs. 149 and Rs. 399 packs, Reliance Jio is offering 1.5GB/day additional data for all daily recurring recharges in the month of June.

  • 3GB/day for 1.5GB/day data pack users – Rs 149, 349, 399, 449
  • 3.5GB/day for 2GB/day data pack users – Rs 198, 398, 448, 498
  • 4.5GB/day for 3GB/day data pack users – Rs 299
  • 5.5GB/day for 4GB/day data pack users – Rs. 509
  • 6.5GB/day for 5GB/day data pack users – Rs 799


  • Jio already offers Rs. 100 discount on all recharge on recharge of Rs. 399 for MyJio app users who pay via Phone Pe. Today the company has extended the offer to recharges of Rs. 300 and above and is also offering 20% discount on recharges below the Rs. 300 price point, if the user recharges through the MyJio app and pays using PhonePe wallet. With this Rs. 149 pack will effectively cost Rs. 120 with 3GB/day data, free voice, SMS and Jio Apps for 28 days.

Backspace String Compare


Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.

Sample input   1 : S = "ab#c"  T = "ad#c"
Sample output 1 : True
Explanation : Both S and T become "ac"

Sample input   2 : S = "a#c" T = "b"
Sample output 2 : False
Explanation : S become "c" but T become "b"

 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <stdio.h>
#include<string.h>
char stack[100];
int top=-1;
//push character in to stack
void push(char cha)
{
    top++;
    stack[top]=cha;
}
//pop character from stack
int pop()
{
    stack[top]='\0'; //set empty character
    top--;
    if(top<-1) //this is incase ##abc 
    {           //if two ## come at the beginning
        top=-1;
    }
}
int main()
{
    char str1[20],str2[20];
    int len1,len2,i,j;
    gets(str1);
    gets(str2);
    len1=strlen(str1);
    len2=strlen(str2);
    for(i=0;i<len1;i++)
    {
        if(str1[i]=='#')
        {
            pop();
        }
        else
        {
            push(str1[i]);
        }
    }
    strcpy(str1,stack);
    top=-1;//reset the stack 
    for(j=0;j<len2;j++)
    {
        if(str2[j]=='#')
        {
            pop();
        }
        else
        {
            push(str2[j]);
        }
    }
    strcpy(str2,stack);
    if(strcmp(str2,str1)==0)
    {
        printf("True ( %s == %s )",str1,str2);
    }
    else
    {
        printf("False ( %s != %s )",str1,str2);
    }
    return 0;
}

OUTPUT :





Longest Palindromic Substring

Given a string S,find the longest palindromic substring in S.

Sample Input 1    : abaxabaxabb
Sample Output 1  : baxabaxab

Sample Input 2     : babad
Sample Output 2   : bab   (aba also correct)

Sample Input 3   : baad
Sample Output 3 : aa


#include <stdio.h>
#include<string.h>
int main()
{
    char str[50],tmp[50],pal[50];
    int len3=0,len2=0,a=0,len,i,j,k,front,back,count=0;
    gets(str);
    len=strlen(str);
    //palindromic substring of length 3 or more
    for(i=1;i<len;i++)
    {
        front=i+1;
        back=i-1;
        a=0;
        while(back>=0 && front<len)
        {
            if(str[front]==str[back])
            {
                a=0;
                for(k=back;k<=front;k++)
                {
                    tmp[a]=str[k];
                    a++;
                }
                len2=strlen(tmp);
                front++;
                back--;
            }
            else{
                break;
            }
        }
       
        if(len2>len3)
        {
            strcpy(pal,tmp);
            len3=len2;
            count++; // check whether palindromic substring length is 3 or more
        }
    }
    //palindromic substring of length 2
    if(count==0)
    {
        for(i=0;i<len;i++)
        {
            if(str[i]==str[i+1])
            {
                printf("%c%c",str[i],str[i+1]);
                break;
            }
        }
    }
    else
    {
    puts(pal);
    }
    return 0;
}

OUTPUT :






Kaala means Black!

This is not a movie about Racism, but a movie, which speaks about the rights, that people deserves over their livelihood!

Food, Water and Shelter are the basic needs of every human being.

Plot

When someone tries to plunder these basic needs, How people should protect their land and themselves?
Kaala answers this question in an action-packed family drama!



Review
  • Actors 
Rajinikanth as Kaala
He is a gutsy don, who fights for the welfare of Dharavi residents.
He is hard against his enemies and soft with his family & his people!
His intro scene is out of box and one of the best intros of Rajini's career, totally unexpected! 
His love portions with his wife and his ex-girlfriend are cute and heart-touching ones.
Rajini's screen presence is stunning throughout the movie and he easily played with our emotions.
Superstar for a reason!

Nana Patekar as Hari Dhadha
He is a don-cum-minister, who tries to plunder the land of Dharavi residents for years.
He sports White and White outfit, round golden frame glass and an ordirnary slipper, which are enough to showcase himself as a typical spiritual Bombay don!
His slang, body language and attitude were mind blowing!
What a villain!
He can be considered as the Best Villain of Rajinikanth after Raghuvaran and Ramya Krishnan!

Eswari Rao as Selvi
She is the better-half of Kaala.
She spoke in local Tamil village slang, that is well-suited for her ethnicity.
Her cute fights with Kaala will make our hearts light.

Huma Qureshi as Zareena
She is the of ex-girlfriend of Kaala.
She enchants us and Kaala with her pleasing eyes.
She comes to her birthplace after a long gap to help Dharavi residents build their own houses.
Her role is short and she has done it without any compromises.

Samuthirakani as Vaalliyappa
He is a loyal friend of Kaala.
He stands along with Kaala in all his endeavors.
He is alcoholic, yet steadily delivers his counters, which brings instant laughs.
He is one of the best supporting actors for this movie.

Anjali Patil as Charumathi aka Puyal
She is a brave Marathi girl.
She scored in the very first scene of the movie with her astonishing act.
In one particular scene, she was harassed by some bad cops, yet, she bashed them all, before falling down.
Her role can be compared to that of 'Rani of Jhansi'.

Dileepan as Selvam and Manikandan as Lenin
They are two of the four sons of Kaala.
Selvam is the warrior of Kaala's gang and Lenin does not mingle with Kaala's gang.
Selvam is energetic, young man who does anything for Kaala.
Lenin's principle is same as Kaala, but he travels in quite different route.
Selvam is straight forward and Lenin is emotional type.
Both of them are the perfect choices to play the sons of Kaala.

Kids 
Kaala's grandchildren were very affectionate towards Kaala and the screen space, they shared with Kaala, were good to watch out. 
Zareena's daughter was cute and her hairdo & specs were nerdy.
Hari Dhadha's granddaughter was so sweet, though she comes in only scene.
Because, in that particular scene, she appeals her grandpa not to kill Kaala and she expresses that Kaala is a nice person.

Other Supporting cast
Hip-hop boys
Residents of Dharavi
Kaala's family members
Kaala's dog
Aravind Akash as Sivaji Rao Gaekwad
Sayaji Shinde
Hari Dhadha's henchmen
and reporter Ramesh Tilak supported the movie well and did justice to their roles.
  • Non-Actors
Director Pa.Ranjith 

First half - Rajini's film | Second half - Ranjith's film
Ranjith has put in a lot of efforts in bringing up this film.
His detailing and the way he pictured his idea deserves big appreciations.
He didn't commit any mistakes that he has previously done in Kabali.
Finally, Ranjith who was lost in Madras is found in Kaala!
Thank you so much for giving a pure life-based movie!
In the last 20 years, every directors did Rajini movie, but he has done his own movie starring Rajini!
Ranjith have proved himself to be one of the finest directors of the industry.

There were many similarities between Madras and Kaala, here are some...
  • The Wall - The Poster / Cut-out
  • (The ones who touched the Wall in Madras dies and in Kaala, the boy who pelted stone on the Cut-out of Hari Dhadha was killed.)
  • Johny - Vaaliyappa
  • The Hip-Hop boys
  • Enga ooru Madras'u - Semma Weight'u
  • Football commentary fight - Ram vs Raavan story fight
  • Both the movie had almost the same children's play area (park)

Two things in this movie were similar to Padayappa.
  • The first thing is the songs, "Thanga Sela" and "Kick'u eruthey", both are placed at similar situations.
  • In one particular scene, the Dharavi residents blocks Hari Dhadha from exiting the slum, the camera angle showing the Dharavi residents from top angle was similar to that of camera that captured the people, who were behind Padayappa, on the wedding venue of Abbas, from where Padayappa takes him to his daughter.
Music director Santhosh Narayanan

Like Kabali, he didn't use repeated Background score in Kaala.
He has done many experiments in BGM and it worked out well.
The tick-tock BGM at the backdrop of Conversation between Kaala and Hari Dhadha, the drizzle of Kannamma song, the electric BGM in the jail scene, Hari Dhadha's BGM and the Rain fight whistles were amazing and electrifying.
The hip-hop songs  of varied languages by Dopeadelicz (especially "Ippo enna pannalaam, sollu Kaala!") were hard hitting ones.
Thanks SaNa for bringing them into this revolutionary album.
Now, Santhosh Narayanan is ready to compose music for all big heroes of the industry.

Editor Sreekar Prasad

Though, the film runs for almost 3 hours, the audience can't experience any lags.
Each and every scene is important for the movie and happily, there were no unwanted or unnecessary sequences.
The rain fight was beautifully edited.
Overall, the editing was sharp and engaging.

Cinematographer Murali

The rain fight is enough to describe his job perfection.
He has measured the area and perimeter of Dharavi with his camera!
Good job!

Dialogue writers Pa. Ranjith, Aadhavan Dheetchanya and K. Makizhan

The dialogues were native to Dharavi and local Tamilnadu.
It added more strength to the film.
The Marathi and Hindi dialogues were written appropriately.
The subtitles were good enough to reach out the audience.
Well done, writers!

Art director Ramalingam

Undoubtedly, he is the backbone of the entire film!
The entire Dharavi slum was recreated and looks like original one!
That bridge in the Dharavi, Kaala's home, Buddha temple, open spaces, the lengthy streets, street lamps and the congested houses were the highlights of the entire slum!
The climax scene was colorful and nobody would have witnessed such an artistic climax!

Choreographers Brinda and Sandy

They supported Rajini well to dance like how he did it some years ago. 
Especially, "Thanga Sela" and "Semma Weight'u" songs were beautifully choreographed!
Thanks for adding some vintage Rajini dance moves!

Stunt director Dhilip Subbarayan 
 
The stunts were a treat to the Rajini fans.
In the rain fight, the umbrella was handled superbly by Kaala.
There were only two big fights and both of them were done well.

Visual effects and Animation 

The opening animation sequence after title card was illustrated beautifully.
And, more importantly, the flashback portion was fantastic.
The characters like Zareena, Vengaiyan and Vintage Rajini as Kaala were pictured creatively and it deserves full marks.
Hats off to the team!

Overall, Kaala is a must-watch movie for its valuable message and technical brilliance!
Not only Rajini fans, everybody would rate this movie as their favourite!
Families can enjoy the movie, as it is neither brutal nor vulgar!


Blurb: Black is not Black!!!
Newer Posts Older Posts Home

SUBSCRIBE & FOLLOW

POPULAR POSTS

  • Sketch Movie Review
  • Thaana Serndha Kootam (aka) TSK Movie Review
  • Suriya 37 Confirmed!
  • JBM awards 2k18
  • Mersal Movie Review
  • Tyrese Gibson Threatens To Quit FF Franchise..!
  • Windows 10 May 2020 Update How to Download it and its features
  • Square Matrix-Corner Elements Sum
  • Middlewares in Express JS
  • Aval Movie Review

Categories

  • Awards 4
  • Code 23
  • Review 19
  • sport 1
  • Tech 20
  • Update 19

Contact Form

Name

Email *

Message *

  • ►  2020 (3)
    • ►  July (1)
    • ►  May (2)
  • ►  2019 (8)
    • ►  October (1)
    • ►  July (1)
    • ►  June (1)
    • ►  February (1)
    • ►  January (4)
  • ▼  2018 (52)
    • ►  October (3)
    • ►  September (3)
    • ►  August (2)
    • ►  July (3)
    • ▼  June (5)
      • Sorting - I
      • Reliance Jio offers 1.5GB additional data per day ...
      • Backspace String Comapre
      • Longest palindromic substring
      • Kaala Movie Review
    • ►  May (1)
    • ►  April (10)
    • ►  March (19)
    • ►  February (1)
    • ►  January (5)
  • ►  2017 (19)
    • ►  December (3)
    • ►  November (8)
    • ►  October (8)

Search This Blog

Powered by Blogger.

Report Abuse

HOME

  • HOME
  • Code Block
  • Tech World
  • How is it?
  • What's Up?
  • JoBatMovie_Awards
  • Sports Block
  • Privacy Policy

JoBatMovie Awards

  • Home
  • JoBatMovie Awards
  • Home

Featured post

JBM awards 2k18

JoBat Updates

Designed by OddThemes | Distributed by Gooyaabi Templates