One question of sorting for a list of people belonging to different cities and states.

AnswerBot
1y

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If two people b...read more

Hillan Shaba
2mo
currently not working
Sort a list of people by their cities and states. Use a sorting algorithm like quicksort or mergesort. Create a custom comparator function that compares the...
sukhman
6mo
process management,memory management, file systems management, device management and security and privacy.
Vijay Bairagi
8mo
Hi
Anonymous
9mo
Assemble to cities one-sided and State another side
Anonymous
10mo
it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.
Pankaj Singh
10mo
Sorting and filtering are two tools that let you customize how you organize and view your data, making it more convenient to work with. In this lesson, you'll learn how to sort and filter records
Anonymous
10mo
Clt find option via key board - enter any of deta regarding your - enter.
Anonymous
11mo
Name of the person, Pincode.you can type the various pincode provided and you can find the places and details
Anonymous
11mo
move to excel apply there welookup formula and you will get answer to ur Question .
Rajveer Malsariya
11mo
it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.
Anwaar Ahmed
1y
Go to excel put formula n filter it out..
Manikandan
1y
Sorting Data by State then City
Shiva k
1y
If u have data ready it's Very simple go to excel put formula n filter it out.
Anonymous
1y
then we have to identify blaming that.it is possible.
Akshay Aher
1y
If u have data ready it's Very simple go to excel put formula n filter it out.
S BALA MURUGAN
1y

Assemble to cities one-sided and State another side

Anonymous
1y

· Let ABCDE for persons assume PQRST different city/ state

· If A is from city P

· B is from city Q

· C is from city R

· D is from city S

· E is from city T

Assume depending on the alphapetical order of the...read more

SALMAN ANSARI
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Anonymous
1y

it in two parts. Let's also make the simplifying assumption (not stated in your question) that the Users table has only one entry per user per city.

Brijesh Kumar
1y

Some people live in the other cities and states are following .

Cities / states

Meerut / Uttar pardesh

Sonipat / Haryana

Surat / Gujrat

Shrinagar / Jammu and kashmir

Haridwar / uttarakhand

Dharmendra Yadav
1y

If u have data ready it's Very simple go to excel put formula n filter it out...

Abhishek Saini
1y

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If two people b...read more

poonam Chourasia
1y

If we have a data ready it's very simple go to excel put formula and filter it out.

Anonymous
1y

Access sample base & cities and there pincode number

NAVJOT Singh
1y

order sales data by calendar month so that you can produce a graph of sales performance.

Seelam Mahendra
1y

Name of the city and pin code

Hajirabanu
1y

If u have a data ready it's very simple go to excel put formu n filter it out.

Pamu sikumar
1y

Name of the city and pin code

KOWSALYA B
1y

This is really a two part question:

  1. What cities have more than one user located in them?

  2. What users live in that subset of cities?

Let's answer it in two parts. Let's also make the simplifying assumption...read more

Manishek Singh
1y

SELECT id, name, city

FROM persons

JOIN (SELECT city

FROM persons

GROUP BY city HAVING count(*) > 1) AS cities

USING (city);

Anonymous
1y

My Answer is

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If ...read more

Anonymous
1y

Sorting alphabetically (AtoZ or Z to A) by value ( largest to smallest or smallest to largest) by day of the week ( Monday, Tuesday, Wednesday, Thursday, Friday........) Or by month names ( Jan,Feb......read more

Airish Kathleen Del Pilar
1y

My Answer is

Sort a list of people by their cities and states.

  • Use a sorting algorithm like quicksort or mergesort.

  • Create a custom comparator function that compares the city and state of each person.

  • If...read more

Anonymous
1y

India is home to a vast array of cities, each with its own unique culture and history. From the bustling metropolises of Mumbai and Delhi to the ancient cities of Varanasi and Jaipur

Arvind Kushwaha
1y

If u have data ready it's Very simple go to excel put formula n filter it out

Lalitha Kiran
1y

People name, state pincode or city pincode or any proof

Anonymous
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Anonymous
1y

Area pincode and state pincode

Anonymous
1y

Making a list for all people and than short by function list.short([name of people] )

Adarsh
1y

Sort a list of people by their cities and states.

Use a sorting algorithm like quicksort or mergesort.

Create a custom comparator function that compares the city and state of each person.

If two people b...read more

Anonymous
1y

Excel put formula and filter it out it we can list the people

Ankit Kumar 28
1y

it's simply fo to exel put formula n then after filter it out

Rohit Panwar
1y

Filter the State or cities in alphabet order so that we can sort the list of people beloning to the correct state of cities

Rajesh Ratilal Chacha
1y

its simple fo to excel put formula n filter it out

Bhatt saurav
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Hitesh Bhatt
1y

If u have data ready it's Very simple go to excel put formula n filter it out.

Sangaiah Sivakumar
1y

Filter the State or cities in alphabet order so that we can sort the list of people beloning to the correct state of cities

Dhanunjay Kurva
1y

Input:

Person 1: Name - John, City - New York, State - New York

Person 2: Name - Mary, City - Los Angeles, State - California

Person 3: Name - Sarah, City - New York, State - New York

Person 4: Name - Mic...read more

Chandra Prakash
1y
#include int main() { int n, z = 0; scanf ("%d", &n); int arr[n]; for(int i = 0; i < n; i++) { scanf("%d", &arr[i]); } for(int i = 1; i < n; i++) { if(arr[0]==arr[i]) z++; } printf("%d", n-z-1); retur...read more
Add answer anonymously...
Capgemini Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter