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.
同時也有89部Youtube影片,追蹤數超過283萬的網紅bubzbeauty,也在其Youtube影片中提到,It's officially Valentines Day over here in HONG KONG!! Happy Valentines Day/ Forever Alone Day / Single Awareness Day ! Take your pick. I decided t...
「fun with reading」的推薦目錄:
- 關於fun with reading 在 Lee Hsien Loong Facebook
- 關於fun with reading 在 อวยไส้แตกแหกไส้ฉีก Facebook
- 關於fun with reading 在 Janet Hsieh 謝怡芬 Facebook
- 關於fun with reading 在 bubzbeauty Youtube
- 關於fun with reading 在 LADIES FIRST Youtube
- 關於fun with reading 在 emi wong Youtube
- 關於fun with reading 在 Simple-to-Make Reading Games for Kids - Pinterest 的評價
fun with reading 在 อวยไส้แตกแหกไส้ฉีก Facebook 八卦
อันเนื่องมาจากภาพยนตร์และข่าวดัง
จากหนังไทยเรื่อง พลอย สู่ข่าวดัง คู่รักคนดัง หญิงแย้ - หมอสอง
============================
....
Continue ReadingDue to movies and famous news
From Thai movie, ploy to famous news, celebrity couple - doctor song
============================
.
Marriage may be like a happy ending of a fairy tale, but in real life, it's the start of a marriage that will fight another barrier after the first part of just ended. That's fighting for the love of young people to reigns until the day. Married...
.
" does love expire? Brother Ploy asked science when you start to see the disregard of two husband and wife, science and daeng.
Science says "yes"
Ploy asked back
" like a can of pineapple.......
Going back before science confessed that love has really expired. I used to ask science.
" Science, do you love daeng
Science replied
"love"
Red says it again
"Red wants science to feel red love"
Science. Hurry up the garden right away.
" but we have been married for 8 years
Red can go back to smoke
"in the past, why can science say that I love red every day"
.
Believe it or not. It's the feeling of a married couple for a while. There will be a moment like this. My best friend used to complain about husband to me about the dog. The husband has a mistress, she cries and she tells me just
"I don't want him to do much. I just want him to do the same before marriage"
" Hey!!! Why are you married!!! I think in my heart.
.
According to the news, many women may think that it's just pretty broke up with three news. Why is it so big? But I think if we look at the other corner, if we have to use the news smart, use it and think about it as a lesson and oops. Dhahn makes our lives better. Don't be like him. I think there are quite useful aspects of life.
.
Women and doctor two have been together for 7 years. They are a couple who launched through social with jealousy. Women are beautiful. Men are rich and work is very good. Most importantly, both are very rich even if men look rich. The Father is super mom, but the lady is very good at making money because she earn via ig. Almost every post and tai-in. The product is on social all the time. Female income per month. Good or not good. Join seven digits. Wedding is luxurious. Dormitory house The price is 130 million dowry, ten million (if i remember correctly). Seriously, the marriage of these two people are almost called it to the end and it should have finished the curtain. Happy ending. or if there is an obstacle to break up, it should at least climb. Oh, but what I see is about two months. These two are separated....
.
Sometimes love comes to a saturation point. Sometimes love comes to the point where we don't have feelings. It's like a book that I have finished reading and don't want to take it back. So it becomes a dog that we want to live with. It's like The book we left on the bookshelf. I don't want to come back to read again. But in the meantime, we want to find another book to read instead? Hey, how can a couple life be like a book
.
So can it be like a canned pineapple? I can't eat. It's like a movie.....
Well, love is love. Young people are together. But when they are husband and wife, it's another way. Husband and wife is not fun because it's the rest of our whole life until our last day. If it's not, we need to hurry up. It's done because if i have a burden to have a child, it can be a severe suffering.
.
When it's over, when it's not enough. When it expires. When it's a book that we don't want to read anymore. Don't use it together. Sometimes I feel uncomfortable when I see the face. They hug. I want to shake away. Who has a husband, who has Now I have a feeling like this. It's very dangerous. Try to change the atmosphere and try to have sex in strange places in the pounting attitude. Everything. Mother is so hard. That means love must have expired. But we are Trying to get it to paint and smell but when it can't eat it, I can't eat.
.
I don't want people to break up with each other. Only if we adjust our heart, accept being together. Change from husband and wife to couple, friends or brothers. Can it do it? Seriously, if we are young and young, different people still have it. Wisdom can find a new one. Hundreds. They say good bye. But some couple are still together without anything. Mostly because they have kids or old people have eyes in society or treasure. There is a business together.
.
Finally, I still confirm as usual.
#ความรักคือนามธรรมที่ไร้เหตุผลที่สุดในโลก
.
I don't care about emotions, feelings. I don't care. I don't care about morality. If he loves it, it's ready to wear it. If they don't want it, no matter how good it is, they are, they run away. So don't mourn. What a lot of love. Love comes in. If you don't love, jump away. Trust me...Translated
fun with reading 在 Janet Hsieh 謝怡芬 Facebook 八卦
最近大家辛苦了。現在世界狀況很不安定,充滿不確定,生活也被影響。 我們擔心家人、朋友們,每天無時無刻都在關注新聞,我們都在想,什麼時候才會回到“正常”。
I know it’s been a funny time for everybody - our lives have been disrupted, we’re worried for our family and friends, we’re reading the news every second for updates, we’re wondering when (or if) things will ever be “normal” again.
我們自主管理了滿14天,也盡量維持樂觀的態度和想法:
We self-quarantined for 14 days and are trying to look at all the positives that have come out of this.
我跟老公、兒子和父母因為這樣,花了很多很美好的時間相處。我們知道這是我們要一起面對的現實,也學著尊重彼此的空間,但同時也很感謝我們現階段都還算是健康、安全且幸福的。
I’ve gotten to spend so much quality time with my husband, son and parents. We’re all in this together and respect our needed space, but also appreciate how lucky we are to be healthy and safe together.
我跟好多朋友們及家人聯絡。每個人不管在那個世界的角落,都在相互關心,好溫馨。
I’ve been in touch with so many friends and family from all over the world. Everybody has been checking up on each other and I’ve heard from or reached out to friends/family who are concerned about our well-being and vice versa. And… it’s been nice!
我的家,天啊,已經5年沒有那麼乾淨了。好啦,15年。
My apartment has gotten the “spring cleaning” that it desperately needed for the past 5 years. (OK OK, let’s be honest… the past 15 years.)
我們廚藝都變得又創意又厲害。連Egan都在假裝煮飯 (但是他是用龍火,所以他贏了)。
We’ve all been more creative and having fun with our cooking (including Egan who has started to pretend cook with dragon fire. He’s winning.)
我們好好的坐下來,討論了很多很煩惱但是必須處理的事:財政、法務、保險、退休....,噢我頭又開始痛了⋯⋯。
We’ve sat down and started taking care of “boring” stuff that has just always gotten pushed to the side. (you know, legal, financial, insurance, retirement…. The kind of stuff that gives us headaches)
我們找了許多能在家裡做的活動,讓我們維持身心健康。
We have managed to try and stay physically and mentally fit and healthy by finding random activities to do.
同時,也很無罪惡感的看了很多電視、很多部電影、玩電動遊戲。(重點是無罪感喔!)
But we’ve also sat around and watched a lot of TV and movies or played video games GUILT FREE. (Yes, the important thing is the GUILT FREE part).
我們教了兒子很多重要的人生課程(尤其跟現在特別時機有關),他現在是洗手達人了,知道咳嗽時要摀住嘴,然後放屁時要傻笑,一些人生重要且健康的社交禮儀。
We’ve taught our son important life lessons relevant to the times (he is a master hand washer now, knows to cover his mouth when he coughs, and giggles when he farts. That’s just proper social etiquette.)
希望大家都能在現在的生活狀態持續維持健康、寬心且安全。我們再耐心一點的持續保持健康的距離,保持強壯的身體。
I hope everybody is coping well and adjusting to this “new normal.” Please stay safe, stay healthy, stay mentally healthy, stay socially distant for just a bit longer, and stay strong.
我也想請你們和我們分享,在現在不如以往正常的生活狀況下,你正在做的一些健康、樂觀的事。 我也想跟你們分享健康的食物!或是 如果你認識的正在居家隔離、居家檢疫的朋友或家人,需要一點鼓勵,而且是健康好吃的那種,也跟我說!我們來給一點小小幫忙。
Please share some of the positive things you’ve been doing in these crazy times and I’d like to share some #Vivanuts with you! Or if you know of somebody who is going stir crazy at home and could use a little healthy pick-me-up, let me know and we’ll send over a nice yummy healthy snack.
這幾天來我們在家裡自主管理,收到了好多愛、留言、玩具、零食等⋯⋯,我們也想把一些我們的愛和健康的食物送給你們!
We’ve received a lot of love, messages, food, toys, and random goodies while in self-quarantine and we want to pass on the love and yummy treats to you too!
#萬歲牌 Viva-健康萬歲
fun with reading 在 bubzbeauty Youtube 的評價
It's officially Valentines Day over here in HONG KONG!!
Happy Valentines Day/ Forever Alone Day / Single Awareness Day ! Take your pick.
I decided to do something different this year. I'm not going to do a Valentines Day makeup tutorial because... well, Tim and I aren't doing anything special to be honest. Yup, it's our 10th Valentines Day together and we're cool about it.
I know some of you must be a bit bummed out about having no plans for the "most romantic day of the year". No fear because Bubz is here (HEY IT RHYMES!!!)
No, I've been meaning to make a Beauty Day video for a while. Some days when you're feeling extra pissed off or down, it's nice to put your feet up and pamper yourself. Am I right?
Ok, nobody in this world has time for an ENTIRE day of beauty but you guys get my drift right? Even if you don't have a few hours, give yourself a BEAUTY HOUR.
Beauty Day is FUN whether you're doing it alone or with friend(s). I felt so refreshed and fabulous afterwards. You have nowhere to go? Who cares! You can relax and pamper yourself with your own HOME BEAUTY SPA!
In this video, I demonstrated some possible beauty treatments you can do but there are so much more you can choose instead such as doing your brows, giving yourself a pedicure, a sheet mask, facial massage, DIY Beauty masks etc. You can do WHATEVER you want that makes you feel awesome baby!!! Strut in your home. Dance in your underwear (check to see curtains are shut first). Sing your heart out.
Maybe I'm just getting older now (and possibly more antisocial haha) but I am appreciating 'staying in' days. In fact, I am really craving a good board game... Who wants to play Monopoly? Game of Life? Going off topic now...
You can give yourself a beauty day whenever you're feeling down and need a little pampering or even whenever you're happy (and free hopefully and with time to burn). Sometimes we can get so carried away with life, we forget to take care of ourselves.
Perhaps you have a special event (like a prom or a date) and you want to prep yourself for it. BEAUTY DAY!!! Beauty day doesn't mean you have to do everything 'beauty related'. Do whatever that makes your heart happy whether its reading, getting creative or whatever it is.
Ok bed time!! Have a wonderful day guys!
Stay beautiful!
Much love, Bubz xx
fun with reading 在 LADIES FIRST Youtube 的評價
Our top student from Class T1T5, Denise is here to help you through your online school by answering all the toughest questions you guys sent us on instagram. Will she get these insane Mathematics, Science, Economics questions and even brain teasers right?
Watch this episode next: https://youtu.be/BgrzNxqqPO0
where she shares her best study tips and revision hacks and answer all your school questions! Good luck to all those taking PSLE, O levels, N levels and A levels this year!
Follow our host:
Denise - https://www.instagram.com/denisesoongeelyn
Follow Denise on https://www.instagram.com/puzzlesandco for fun brain teasers and math classes!
If you see this, leave a comment with the secret code: I LOVE HOMEWORK, so we know you're reading this far into the description ;-)
You can now send us cards, letters and gifts to our P.O. Box:
Titan Digital Media Pte Ltd
Singapore Post Centre
PO Box 680
Singapore 914023
Follow us:
https://www.instagram.com/ladiesfirsttv/
ladiesfirst@titandigitalmedia.com
http://www.titandigitalmedia.com
fun with reading 在 emi wong Youtube 的評價
♡SUBSCRIBE FOR WEEKLY VIDEOS 訂閱我的頻道你不會後悔☺
► http://bit.ly/SubscribeToEmi
♡ADD ME ON 成為我的朋友☺
Instagram: @EmiWong_
► https://www.instagram.com/emiwong_
Facebook: @Emi Wong
►https://www.facebook.com/StayFitandTravel/
♡HELP ME TRANSLATE MY VIDEOS 觀眾朋友有時間可以幫我加字幕, 非常感激!☺
http://www.youtube.com/timedtext_cs_panel?tab=2&c=UCvGEK5_U-kLgO6-AMDPeTUQ
♡WATCH MORE VIDEOS (PLAYLISTS)
VLOGS ► http://bit.ly/EmiVlogs
WORKOUTS ► http://bit.ly/WorkoutWthEmi
BEGINNER WORKOUTS ► http://bit.ly/BeginnerWorkoutsWithEmi
FITNESS & DIET TIPS ► http://bit.ly/FitnessDietTipsWithEmi
EAT (FOOD VLOGS!) ► http://bit.ly/EatWithEmi
TRAVEL ► http://bit.ly/TravelWithEmi
RECIPES ► http://bit.ly/CookWithEmi
FUN CHALLENGES ► http://bit.ly/ChallengesWithEmi
MAKE UP & FASHION ► http://bit.ly/MakeUpFashionWithEmi
廣東話片 Videos in Cantonese ► http://bit.ly/CantoneseVideosEmi
有中文字幕的片 With Chinese Subtitles ► http://bit.ly/ChineseSubtitlesEmi
♡INTRO SONG: Aarre - When We Were Young (ft. Reece Lemonius)
fun with reading 在 Simple-to-Make Reading Games for Kids - Pinterest 的八卦
Do you have a child who is struggling to read? Try these fun and kinesthetic activities for teaching reading. They're sure to get him moving! ... <看更多>