Competitive Programming
Открыть в Telegram
Solving competitive Programming Questions one day at a time. Group link: https://t.me/daily1interviewprogram Please forward it to your friends
БольшеСтрана не указанаКатегория не указана
4 553
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 день
Архив постов
Day 88 Question:
Given an array and a number n, rotate the array by n steps to its right solution in C++
Update your answer below:
http://bit.ly/q_88
Difficulty: Medium
Companies Asked: Amazon MAQ Software
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Solution for day 87 question:
Create a data structure for n elements and constant operations
http://bit.ly/q_87
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Day 87 Question:
Create a data structure for n elements and constant operations
http://bit.ly/q_87
Difficulty: Medium
Update your answer in the comment section of the post.
Hello members, I have not posted any update on past few days. I have been busy in preparing other tutorials for you guys. We shall also start our competitive programming questions from next week. Till then you can share the group links with your friends, so that you and your friends can collectively solve the problems.
Day 86 Question:
Given a linked list, sort the list using insertion sort.
More details in the below link:
http://bit.ly/q_86
Difficulty: Medium
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
=============================
Linux command for the day:
=============================
Linux sudo
Usage:
“sudo” stands for “super user do”. This command is used to execute the commands that can only be executed by super user or root. The users with root access can be found at “/etc/sudoers” file.
Options:
-V Display the version
-l Display the commands that can be executed as a “sudo” user.
-h Display help text
-b Run the given command in background.
Example:
To install any package in centos you need to use “yum install” command. But normal user cannot run this command. Hence use “sudo yum install gvim” to install as a super user. It might prompt you to enter the password.
Solution for day 85 question:
Reorder list in to alternate nodes like first lowest and first highest.
http://bit.ly/q_85
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Day 85 Question:
Reorder list in to alternate nodes like first lowest and first highest.
More details in the below link:
http://bit.ly/q_85
Difficulty: Medium
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
=============================
Linux command for the day:
=============================
Linux whoami
Usage:
“whoami” command is used to display the name of the user running the command.
Example:
whoami
Solution for day 84 question:
Given a sentence and maxWidth. Arrange the text in such a way that each line has exactly maxWidth characters and is fully justified.
http://bit.ly/q_84
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Wishing you and your family a very Happy New Year.
2019!
- prodevelopertutorial.Com
Day 84 Question:
Given a sentence and maxWidth. Arrange the text in such a way that each line has exactly maxWidth characters and is fully justified.
Write your answers in the below link:
http://bit.ly/q_84
Difficulty: Hard
Companies asked: Microsoft
=============================
Linux command for the day:
=============================
Linux alias
Usage:
“alias” command is used to replace one string with another string. This command is used to short a lengthy command.
Options:
-a Removes all the alias strings
-t Displays all the tracked alias
-x Prints exported alias.
Example:
1. “alias” without any options displays the list of commands using alias.
2. To set an alias to command, use “alias l=”ls –al” “. So now instead of entering “ls –al” just enter “l” to do the same task.
Solution for day 83 question:
Given a linked list, determine if it has a cycle in it.
http://bit.ly/q_83
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Day 83 Question:
Given a linked list, if it has a cycle, get the node where the cycle begins else return NULL.
Update with your solution in the below link:
http://bit.ly/q_83
Difficulty: Medium
Companies asked:
Amazon
MakeMyTrip
Microsoft
Oracle
Snapdeal
VMWare
=============================
Linux command for the day:
=============================
Linux uname
Usage:
“uname” command is used to display information about the system.
Options:
-a Display all the information about the system.
-s Display Kernel name.
-r Display kernel release.
-v Display kernel version.
-p Display processor information.
Example:
1. “uname –a”
2. “uname –s”
3. “uname –r”
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Solution for day 82 question:
Given a linked list, determine if it has a cycle in it.
http://bit.ly/q_82
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Day 82 Question:
Given a linked list, determine if it has a cycle in it.
Update with your solution in the below link:
http://bit.ly/q_82
Difficulty: Medium
COmpanies Asked:
VMWare
Microsoft
Amazon
Oracle
Snapdeal
Walmart
MakeMyTrip
=============================
Linux command for the day:
=============================
Linux echo
Usage:
“echo” command is used to customize and display text to output.
Example:
1. Simple echo command. “echo “hello from prodevelopertutorial”.
2. Displaying the value of environment variable “$PATH” with help of echo. “ echo $PATH” .
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group to discuss about the solution:
http://bit.ly/fb_group_pdt
Solution for day 81 question:
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
http://bit.ly/q_81
Like our FB Page:
http://bit.ly/fb_page_pdt
Join our FB Group:
http://bit.ly/fb_group_pdt
Day 81 Question:
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
Difficulty: Medium
Companies Asked:
Walmart
MAQ Software
Google
IBM
Write your answers in the comment section of below link:
http://bit.ly/q_81
=============================
Linux command for the day:
=============================
Linux Time
Usage:
“time” command is used to check; how much amount of time is needed to execute a particular task.
Example:
1. To check how much time is needed to execute “free” command, run “time free”.
Solution for day 80 question:
Given a linked list such that each node contains an additional random pointer which could point to any node in the list or null. Return the deep copy of the list.
http://bit.ly/q_80
Day 80 Question:
Given a linked list such that each node contains an additional random pointer which could point to any node in the list or null. Return the deep copy of the list.
Difficulty: Medium
Write your answer in the comment section of the post below:
http://bit.ly/q_80
Companies Asked:
Amazon
BankBazaar
MakeMyTrip
Microsoft
Morgan Stanley
Ola Cabs
=============================
Linux command for the day:
=============================
Linux Sleep:
Usage:
“sleep” command is used to delay the execution of any process.
Syntax:
“sleep <number> <s/m/h/d>”
s The number is seconds and is default
m The number is minute.
h The number is hours
d The number is day
Example:
1. To sleep for 10 seconds. “sleep 10 s”.
2. To sleep for 3 min. “sleep 3 m”.
Solution for day 79 question:
Given a non-empty array of integers, every element appears three times except for one. Find that single one.
http://bit.ly/q_79
Day 79 Question:
Given a non-empty array of integers, every element appears three times except for one. Find that single one.
http://bit.ly/q_79
Difficulty: Medium
=============================
Linux command for the day:
=============================
Linux Cal
Usage:
“cal” command is used to display calendar. If no arguments are specified, then present month calendar will be displayed.
Options:
-1 Display single month output
-3 Display previous present and next month calendar.
-s Display by taking Sunday as first day.
Example:
1. Display simple calendar. “cal”
2. Display calendar of April 2016. “cal 4 2016”
3. Display calendar of entire year. “cal –y”
