I told the Founders Forum two weeks ago that the last computer program I wrote was a Sudoku solver, written in C++ several years ago (http://bit.ly/1DMK5Zk). Someone asked me for it. Here is the source code, the exe file, and a sample printout - http://bit.ly/1zAXbua
The program is pretty basic: it runs at the command prompt, in a DOS window. Type in the data line by line (e.g. 1-3-8---6), then the solver will print out the solution (or all the solutions if there are several), the number of steps the program took searching for the solution, plus some search statistics.
For techies: the program does a backtrack search, choosing the next cell to guess which minimises the fanout.
Here’s a question for those reading the source code: if x is an (binary) integer, what does (x & -x) compute?
Hope you have fun playing with this. Please tell me if you find any bugs! – LHL
#SmartNation
===========
Answer: As several of you noted, (x & –x) returns the least significant ‘1’ bit of x, i.e. the highest power of two that divides x. This assumes two’s complement notation for negative numbers, as some of you also pointed out. e.g. if x=12 (binary 1100), then (x & -x) = 4 (binary 100). I didn’t invent this; it is an old programming trick. :)
===========
Update: A few people suggested that I add a licence to the code. Have added it in the Google Drive folder.
同時也有1366部Youtube影片,追蹤數超過361萬的網紅Dan Lok,也在其Youtube影片中提到,Want To Nail Your Next Interview And Have All The Answers Ready For Any Question? Or Not Ready To Get A Job? Click Here To Discover How My Students In...
「if you have any question」的推薦目錄:
if you have any question 在 Dan Lok Facebook 八卦
Does this sound familiar?
1. Go to school.
2. Work hard for good grades.
3. Get a degree.
4. Find a job.
5. Grind your gears for 40 years in a 9-5 with a steady paycheck.
6. Retire at 65.
7. Live life!
This is the structure that was created back in the Industrial Age.
Back then, it was a phenomenal concept!
People who came from nothing could suddenly get rich.
All they had to do was?
Go to school and get a good education so you could get a job as high in the hierarchy as possible.
That’s the exact same structure we follow today.
There’s just one problem.
Actually, let me ask you a question...
Do you know people who follow this system, yet they’re struggling financially… or they’re just living a comfortable life?
That’s what I’m talking about.
Society has been FEEDING you the idea that you can get rich with a concept from the 1950’s!
Now, I want you to think about some of the most successful and wealthy people on earth.
Did they get there by working at a 9-5 for 40 years?
Did they get there by having 2-3 different jobs?
Did they get there by having the best degrees?
No.
In fact, most of them had NOTHING.
So, how did they make it work?
They had a unique set of skills.
Skills that offer high value to the marketplace.
Steve Jobs used CLOSING to sell millions of iPhones.
Gary Halbert (famous marketer) used COPYWRITING to sell billions of dollars worth of products.
And Richard Branson, Jack Ma, and Elon Musk combined different entrepreneurial skills to build billion dollar companies.
And society has kept this secret from you all these years…
YOU have one or more of these skills within you.
That’s why I’ve created one of the first free quizzes that’ll help you discover the ONE High-Income Skill you were born to do.
Using the skill you’re about to discover, you’ll no longer have to worry about the bills.
You can prosper in any part of the world.
And you can be the boss of your own income.
If you want me to send you this new quiz to help you discover the High-Income Skill you were born to do…
Just type the code word “Quiz” below.
if you have any question 在 Drama-addict Facebook 八卦
รายนี้เป็นตัวอย่างที่ดี คุณวรรณสิงห์ ซึ่งเขาเปิดระดมทุน ให้ประชาชนที่ติดตามเพจเขา สี่แสนกว่าไลค์ ร่วมกันลงขันซื้ออุปกรณ์ดับไฟป่าให้ จนท ที่ภาคเหนือ ได้เงินมาสามล้านแปด เขาก็ลงรายรับรายจ่ายชัดเจน ว่าได้เงินมาเท่าไหร่ นำไปจ่ายอะไรบ้าง ละเอียดขนาดไหน ลองดูที่เขาลิสท์ ลงกระทั่งว่า ซื้อเครื่องดื่มบำรุงกำลังไปสองพันให้ จนท ดับไฟป่าได้โด๊ปกัน ไหนจะค่าปลากระป๋อง ค่ากล่องใส่ยา ยาสามัญประจำบ้าน หน้ากาก ค่าส่งของ ค่าอุปกรณ์ดับไฟ (ละเอียดจริงเว้ย) เพื่อความโปร่งใส่ เวลารับบริจาคมา ก็ควรทำงี้ล่ะครับ นี่ลงกระทั่งหลักฐานการโอนเงินที่เอาไปตรวจสอบ QR code ได้ด้วยนะนัน่
Update** 28/03/2020
***เบื้องต้นได้รับการติดต่อจากทีมผู้ว่าฯแล้วนะครับ ท่านบอกมาว่าไม่ได้สั่งการมา เลยกำลังสืบสวนอยู่ว่าเรื่องมันเป็นยังไง ตำรวจท่านนั้นทำงานตามคำสั่งใคร เดี๋ยวผมจะมาอัพเดทเมื่อสถาการณ์คลี่คลายครับผม
---------------------------------------
ขอแจ้งยอดการใช้เงินบริจาคเพื่อช่วยไฟป่าเชียงใหม่ประจำวันที่ 27 มีนาคม 2563 ตามนี้นะครับ ขอบคุณที่บริจาคเข้ามามากมาย ตอนนี้ขอปิดรับก่อนนะครับ
ขอแจ้งว่ายอดเงินที่ยังคงค้างอยู่ในบัญชี 344970.65 บาทนั้น ตอนนี้ผมยังคงไม่สามารถเอาไปให้โครงการหรือหน่วยงานไหนได้เพราะว่า
มีเจ้าหน้าที่ตำรวจติดต่อมาโดยบอกว่าเป็นคำสั่งของผู้ว่าราชการจังหวัดเชียงใหม่ครับ
เบื้องต้นได้แจ้งกับผมว่าการเรี่ยไรให้อาสาภาคประชาชนกลุ่มต่างๆในแบบที่ผมทำนั้น ไม่ตรงกับการทำงานและนโยบายของภาครัฐ ที่ทุกอย่างควรทำผ่านส่วนกลางเท่านั้น และการมีเบอร์ประสานงานของเจ้าหน้าที่อุทยานดอยสุเทพ-ดอยปุยในโพสต์ของผมนั้น กระทำโดยไม่ได้ขออนุญาตและส่งผลให้เกิดความเสื่อมเสียกับชื่อเสียงของทางอุทยาน
บวกกับมีการตั้งข้อสงสัยว่าผมได้เอาชื่ออุทยานมาอ้างเพื่อเรี่ยไรเงินบริจาคอย่างไม่โปร่งใสหรือไม่ (โดยยังไม่ได้ตั้งข้อกล่าวหาใดๆ) และเงินที่ได้มาก็ไม่ได้มาถึงอุทยานจริงๆ (ซึ่งทางผมได้แจ้งผู้บริจาคทุกท่านไว้แล้ว ตามหลายๆโพสต์ก่อนหน้านี้ ว่าอุทยานรับแต่ของ ส่วนเงินผมจะเอาไปกระจายให้องค์กรต่างๆในพื้นที่)
และจากปากคำของเจ้าหน้าที่ตำรวจที่ติดต่อเข้ามา ได้แจ้งว่าการเรี่ยไรเงินบริจาคและกระจายเงินกันเองโดยภาคประชาชน เป็นเรื่องไม่สมควรทำ เพราะไม่โปร่งใส การทำงานอาสาของทุกชุมชนมีทางการเป็นผู้กำกับดูแล รวมถึงการอ้างว่าในพื้นที่ขาดอุปกรณ์และอาหารเครื่องดื่มก็ไม่เป็นความจริง ทางเจ้าหน้าที่ตำรวจได้ชี้แจงว่าเจ้าหน้าที่มีอุปกรณ์ทุกอย่างพร้อม ทางรัฐได้จัดหาได้ครบถ้วนแล้ว ทางโพสต์ของผมจึงเป็นการใช้ข้อความบรรยายสถานการณ์ที่ไม่เป็นจริงมาลวงให้คนบริจาคเงิน
ทั้งนี้ทั้งนั้น ทางเจ้าหน้าที่ตำรวจคนดังกล่าว ได้ขอให้ผมเดินทางไปที่จังหวัดเชียงใหม่ด้วยตัวเองโดยเร็วที่สุดเพื่อแสดงความบริสุทธิ์ใจ โดยต้องการให้ไปมอบเงินให้ถึงมือผู้ว่าฯ และยกเงินก้อนนี้ให้ทางรัฐเป็นผู้บริหารงานจัดการต่อๆไป
โดยเบื้องต้นผมถามไปแล้วว่า หากผมโพสต์ทุกวันว่าใช้จ่ายอะไรบ้างโดยละเอียดอย่างที่โพสต์นี้ นับว่าโปร่งใสไหม ทางเจ้าหน้าที่ก็ยืนยันว่าผมต้องไปมอบเงินให้ผู้ว่าที่เชียงใหม่ด้วยตัวเองเท่านั้น
ผมเองยังไม่ขอออกความเห็นอะไรเว้นแต่ต้องขอโทษเจ้าหน้าที่อุทยานคนที่เอาเบอร์มาโพสต์ประชาสัมพันธ์โดยไม่ได้ขออนุญาตก่อน โดยตอนแรกได้รับข้อมูลมาจากอาสาสมัครในเชียงใหม่ว่าให้ติดต่อไปยังเจ้าหน้าที่คนนั้นหากใครมีของจะบริจาค
และอีกอย่างต้องขอโทษทุกท่านที่บริจาคเข้ามา เพราะว่าเงินที่มาอยู่ที่ผมตอนนี้อาจจะต้องแช่แข็งไว้ก่อน เพื่อจัดการกรณีที่โดนสงสัยนี้ให้เรียบร้อยก่อน ใครมีช่องทางบริจาคอื่นๆก็ขอให้ใช้ไปก่อนนะครับ
และสุดท้าย หากจะให้ไปเชียงใหม่เพื่อแสดงความบริสุทธิ์ใจจริง ผมก็ยินดีครับ แต่สถานการณ์ช่วงนี้ผมคิดว่าการเดินทางจากกทม.ไปเชียงใหม่จะยิ่งเพิ่มความเสี่ยงให้ชาวเชียงใหม่มากขึ้นไปอีก เลยคิดว่าอยากให้มีทางอื่นที่ง่าย ปลอดภัยกับทุกคนและเร็วกว่านี้เพื่อให้สามารถทำงานกันต่อได้ครับ จากข้อมูลของอาสาในพื้นที่ ไฟยังไม่มีทีท่าว่าจะดับเลยครับ
ขอบคุณมากครับ
วรรณสิงห์ ประเสริฐกุล
ป.ล. ขณะนี้ ผมยังไม่สามารถยืนยันได้ว่าเจ้าหน้าที่ติดต่อมานั้น เป็นเจ้าหน้าที่ตำรวจตัวจริงหรือไม่ และได้ทำตามคำสั่งของท่านผู้ว่าฯจริงหรือเปล่า โดยจะรีบตรวจสอบต่อไปให้เร็วที่สุดนะครับ แต่เบื้องต้นทราบชื่อและตำแหน่งแล้วครับ
#Saveเชียงใหม่
#ไฟป่าดอยสุเทพดอยปุย
#ฝุ่นภาคเหนือ
Update ** 28/03/2020
*** Preliminary has been contacted by the governor team. He told me that he didn't order. I'm investigating how it is. Police work in order. I will update when the situation unfold.
---------------------------------------
I would like to inform about the donation amount to help Chiang Mai wildfire on 27 March 2563 Thank you for donating so much. Now, I will close it first.
Let me tell you that the balance still remains in the account of 344970.65 Baht. Now I can't give it to any project or agency because
A police officer contacted me and said it was the order of the governor of Chiang Mai.
Preliminary informs me that the alienation of volunteers in the way I do is not match the government's work and policy that everything should be done through central part and the coordination number of Doi Suthep-Doi Pui Park officials. In my post, it was done without asking permission and resulted in a disgrace of the park's reputation.
Plus, there is a question whether I have claimed a park name for invariably, non-transparent donations (without any accusations) and the money that I haven't really reached the park (which I have informed all donors. An earlier post that the park only accepts money. I will distribute it to local organizations)
And according to the word of the police officer who contacted us that the donation and distribution of money by the public sector is not supposed to do it because of not being transparent. Volunteer work of all communities is official as a supervisor, including local claims, lack of equipment and food, drink is not true. Police officials have explained that all devices are equipped with the cuddle states. My post is using a message to describe the situation that is not true to donate money.
All of these police officers asked me to travel to Chiang Mai as soon as possible to give sincere money to the governor's hand and give this money to the cuddle states as an administrator.
Initialization, I asked if I posted every day how I spend in detail as this post is considered transparent. Officers confirmed that I must go to give money to governor in Chiang Mai by myself.
I don't ask for any comments unless I apologize to the park officials who posted a number to public relations without asking for permission. Initially received information from volunteers in Chiang Mai to contact that staff if anyone has anything to donate.
And besides, I apologize to everyone who donated because the money that I have now. I may have to freeze to manage this suspicious case. If anyone has any other donation, please use it first.
Finally, if I want to go to Chiang Mai to show my sincere sincereness, I'm happy. But in this situation, I think I'm traveling from Bangkok. Going to Chiangmai to increase the risk of Chiang Mai. I think that there is a simple, safe way for everyone and faster to continue working. From Volunteer information in the area, there is no tendency to be extinguished.
Thank you very much.
Wan Singha Praseritkul
P.S. L L L L L L I can't confirm if the contact officer is a real police officer or not and has followed the governor's orders. I will check it out as soon as possible. But the preliminary knows the name and position.
#Saveเชียงใหม่
#ไฟป่าดอยสุเทพดอยปุย
#ฝุ่นภาคเหนือTranslated
if you have any question 在 Dan Lok Youtube 的評價
Want To Nail Your Next Interview And Have All The Answers Ready For Any Question? Or Not Ready To Get A Job? Click Here To Discover How My Students In Over 130+ Countries Are Writing Their Own Paychecks In An Untapped Market With This ONE Skill: http://aboutyourself.danlok.link
Maybe you got fired. Maybe you just quit your job. Or maybe you’re looking for your first job. In any case, this interview question: “Tell me about yourself” is almost guaranteed to come up. And this is the part where most people say the WRONG things and lose the job opportunity. If you want to know exactly what to say, watch this video now.
? SUBSCRIBE TO DAN'S YOUTUBE CHANNEL NOW ?
https://www.youtube.com/danlok?sub_confirmation=1
Check out these Top Trending Playlists -
1.) Boss In The Bentley - https://www.youtube.com/playlist?list=PLEmTTOfet46OWsrbWGPnPW8mvDtjge_6-
2.) Sales Tips That Get People To Buy - https://www.youtube.com/watch?v=E6Csz_hvXzw&list=PLEmTTOfet46PvAsPpWByNgUWZ5dLJd_I4
3.) Dan Lok’s Best Secrets - https://www.youtube.com/watch?v=FZNmFJUuTRs&list=PLEmTTOfet46N3NIYsBQ9wku8UBNhtT9QQ
Dan Lok is a Chinese-Canadian business magnate and global educator known for being the founder and chairman of Closers.com - the world’s #1 virtual-closers network, Copywriters.com, and SalesCalls.com. Beyond his businesses, Mr. Lok has led several global movements to redefine modern education where he has taught individuals from 150+ countries to develop high income skills and financial confidence.
Beyond his success in business, he was also a two time TEDx opening speaker. An international best-selling author of 12+ books. A member of Young Presidents Organization (YPO) - a private group of global chief executives whose companies employ 22 million people and generate 9-trillion USD in annual revenues. He also hosts The Dan Lok Show - a series on elite business tycoons and world-leading entrepreneurs.
Today, Mr. Lok continues to be featured in thousands of media channels and publications every year and is widely seen as one of the top business leaders by millions around the world.
If you want the no b.s. way to master your financial destiny, then learn from Dan. Subscribe to his channel now.
★☆★ CONNECT WITH DAN ON SOCIAL MEDIA ★☆★
YouTube: http://youtube.danlok.link
Dan Lok Blog: http://blog.danlok.link
Facebook: http://facebook.danlok.link
Instagram: http://instagram.danlok.link
Linkedin: http://mylinkedin.danlok.link
Podcast: http://thedanlokshow.danlok.link
#DanLok #InterviewQuestions #TellMeAboutYourself
Please understand that by watching Dan’s videos or enrolling in his programs does not mean you’ll get results close to what he’s been able to do (or do anything for that matter).
He’s been in business for over 20 years and his results are not typical.
Most people who watch his videos or enroll in his programs get the “how to” but never take action with the information. Dan is only sharing what has worked for him and his students.
Your results are dependent on many factors… including but not limited to your ability to work hard, commit yourself, and do whatever it takes.
Entering any business is going to involve a level of risk as well as massive commitment and action. If you're not willing to accept that, please DO NOT WATCH DAN’S VIDEOS OR SIGN UP FOR ONE OF HIS PROGRAMS.
This video is about Tell Me About Yourself - A Good Answer To This Interview Question
https://youtu.be/5v-wyR5emRw
https://youtu.be/5v-wyR5emRw

if you have any question 在 Michelle Phan Youtube 的評價
Hullo cuties! Hope you all are staying warm & cozy! A few weeks ago, I asked you guys to send me your questions. My friend randomly selected a bunch and asked me on camera while filming my response :) I didn't want to be prepped or know the questions in advance.
If you have any questions or if you're seeking advice, send them my way via twitter or instagram and #AskMish so I can answer them in my next Ask Mish video! ILY ♥ Happy Holidays!
My own makeup line! http://www.emcosmetics.com/
My sister's instagram...love her :) http://instagram.com/thechristinep
♥ Please Subscribe! http://bit.ly/MPsubscribe
♥ My Twitter: http://twitter.com/MichellePhan
♥ My Facebook: http://facebook.com/MichellePhanOfficial
♥ My Instagram: http://instagram.com/MichellePhan
♥ My Blog: http://michellephan.com
♥ ICON Network: http://youtube.com/ICONnetwork
This is not a sponsored video.

if you have any question 在 Dan Lok Youtube 的評價
Have You Ever Been Asked: “What Are Your Weaknesses?” At An Interview And You Didn’t Know What To Say? If You Want To Develop The Right Skill Set So You Never Have To Worry About Jobs And Interviews, Take Dan's FREE Quiz Here: http://yourweaknesses.danlok.link
When the interviewer asks the question: “What are your weaknesses?”, what do you say? Do you try to convince them that you have no weaknesses? Or do you open up and reveal your weaknesses? Watch this video now to discover Dan’s secret to handling the interview question: “What are your weaknesses?”
? SUBSCRIBE TO DAN'S YOUTUBE CHANNEL NOW ?
https://www.youtube.com/danlok?sub_confirmation=1
Check out these Top Trending Playlists -
1.) Boss In The Bentley - https://www.youtube.com/playlist?list=PLEmTTOfet46OWsrbWGPnPW8mvDtjge_6-
2.) Sales Tips That Get People To Buy - https://www.youtube.com/watch?v=E6Csz_hvXzw&list=PLEmTTOfet46PvAsPpWByNgUWZ5dLJd_I4
3.) Dan Lok’s Best Secrets - https://www.youtube.com/watch?v=FZNmFJUuTRs&list=PLEmTTOfet46N3NIYsBQ9wku8UBNhtT9QQ
Dan Lok is a Chinese-Canadian business magnate and global educator known for being the founder and chairman of Closers.com - the world’s #1 virtual-closers network, Copywriters.com, and SalesCalls.com. Beyond his businesses, Mr. Lok has led several global movements to redefine modern education where he has taught individuals from 150+ countries to develop high income skills and financial confidence.
Beyond his success in business, he was also a two time TEDx opening speaker. An international best-selling author of 12+ books. A member of Young Presidents Organization (YPO) - a private group of global chief executives whose companies employ 22 million people and generate 9-trillion USD in annual revenues. He also hosts The Dan Lok Show - a series on elite business tycoons and world-leading entrepreneurs.
Today, Mr. Lok continues to be featured in thousands of media channels and publications every year and is widely seen as one of the top business leaders by millions around the world.
If you want the no b.s. way to master your financial destiny, then learn from Dan. Subscribe to his channel now.
★☆★ CONNECT WITH DAN ON SOCIAL MEDIA ★☆★
YouTube: http://youtube.danlok.link
Dan Lok Blog: http://blog.danlok.link
Facebook: http://facebook.danlok.link
Instagram: http://instagram.danlok.link
Linkedin: http://mylinkedin.danlok.link
Podcast: http://thedanlokshow.danlok.link
#DanLok #InterviewQuestions #Weaknesses
Please understand that by watching Dan’s videos or enrolling in his programs does not mean you’ll get results close to what he’s been able to do (or do anything for that matter).
He’s been in business for over 20 years and his results are not typical.
Most people who watch his videos or enroll in his programs get the “how to” but never take action with the information. Dan is only sharing what has worked for him and his students.
Your results are dependent on many factors… including but not limited to your ability to work hard, commit yourself, and do whatever it takes.
Entering any business is going to involve a level of risk as well as massive commitment and action. If you're not willing to accept that, please DO NOT WATCH DAN’S VIDEOS OR SIGN UP FOR ONE OF HIS PROGRAMS.
This video is about Interview Question: “What Are Your Weaknesses?” And You Say, “...”
https://youtu.be/VwzFWmNX7GI
https://youtu.be/VwzFWmNX7GI

if you have any question 在 【英語島專欄】沒人告訴你的商業Email錯誤 - 天下雜誌 的相關結果
這句話少了「有」。正確說法是: (O)If there is any question, please let me know. (O)Should you have any question, please let me know. ... <看更多>
if you have any question 在 TOEIC 900 - 【每天一句實用英文】 If you have any questions ... 的相關結果
If you have any questions, please let me know. 這是一句日常生活中很常用的句型,意思是「如果有疑問,請告訴我。」通常是解釋某件 ... ... <看更多>
if you have any question 在 英文e-mail 寫If you have any question 竟然是錯的? 的相關結果
可以想成some! If you have any questions, please don't hesitate to call me. 如果你有問題,請不要猶豫打電話給 ... ... <看更多>