ar
Feedback
Competitive programming questions

Competitive programming questions

الذهاب إلى القناة على Telegram

Solving competitive Programming Questions one day at a time. Group link: https://t.me/competitive_programming_question Please forward it to your friends

إظهار المزيد
لم يتم تحديد البلدالفئة غير محددة
6 861
المشتركون
لا توجد بيانات24 ساعات
لا توجد بيانات7 أيام
لا توجد بيانات30 أيام
أرشيف المشاركات
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”

Solution for day 78 question: Sudoku Solver: http://bit.ly/q_78 Please update your answers or queries in the comment section of the post.

Day 78 Question: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 must occur exactly once in each row. Each of the digits 1-9 must occur exactly once in each column. Each of the the digits 1-9 must occur exactly once in each of the 9 3x3 sub-boxes of the grid More details and hint in the below link. http://bit.ly/q_78 Please update your answers in the comment section of the post.

Solution for day 77 question: http://bit.ly/q_77 Please update your solutions in the comment section of the post

Day 77 Question: Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations. Return the starting gas station's index if you can travel around the circuit once in the clockwise direction, otherwise return -1. Note: If there exists a solution, it is guaranteed to be unique. Both input arrays are non-empty and have the same length. Each element in the input arrays is a non-negative integer. Additional Details in the link below. http://bit.ly/q_77 Update your solutions in the comment section of the post. Difficulty: Medium ============================= Linux command for the day: ============================= Linux Date Usage: Date command is used to display and to set the date in Linux. Options: -d Display the date described by STRING not by ‘now’. -I Display date in ISO 8601 format. --rfc-2822 Output date and time in RFC 2822 format. -s Set time described by string STRING. %a The abbreviated weekday name (e.g., Sun). %A The full weekday name (e.g., Sunday). %b The abbreviated month name (e.g., Jan). %B Locale's full month name (e.g., January). %c The date and time (e.g., Thu Mar 3 23:05:25 2005). %C The current century; like %Y, except omit last two digits (e.g., 20). Example: 1. To change the date to 2018-08-17 24:58:10 use” date -s "2018-08-17 24:58:10" “ 2. To display present date. “date” 3. To display current day use “date “+%a”” 4. To display current month use “ date ”+%b” “.

Solution to 76th question http://bit.ly/q_76

Day 76 Question: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. Additional Details in the link below. http://bit.ly/q_76 Update your solutions in the comment section of the post. Difficulty: Medium Companies Asked: Google Note: You can support this group by sharing the group link in whatsapp, telegram, social media. If you have a technical blog, you can share the link, it would be helpful for many programmers.

Solution To Provious Questions: 74: Single Number Solution: http://bit.ly/q_74 75: Palindrome Partitioning Solution: http://bit.ly/q_75